Skip to content

Commit 5a360e4

Browse files
committed
Fix Implicitly marking parameter $param as nullable is deprecated
1 parent 6264c88 commit 5a360e4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/CAS.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class phpCAS
338338
* @param bool $changeSessionID Allow phpCAS to change the session_id
339339
* (Single Sign Out/handleLogoutRequests
340340
* is based on that change)
341-
* @param \SessionHandlerInterface $sessionHandler the session handler
341+
* @param \SessionHandlerInterface|null $sessionHandler the session handler
342342
*
343343
* @return void a newly created CAS_Client object
344344
* @note Only one of the phpCAS::client() and phpCAS::proxy functions should be
@@ -347,7 +347,7 @@ class phpCAS
347347
*/
348348
public static function client($server_version, $server_hostname,
349349
$server_port, $server_uri, $service_base_url,
350-
$changeSessionID = true, \SessionHandlerInterface $sessionHandler = null
350+
$changeSessionID = true, ?\SessionHandlerInterface $sessionHandler = null
351351
) {
352352
phpCAS :: traceBegin();
353353
if (is_object(self::$_PHPCAS_CLIENT)) {
@@ -393,7 +393,7 @@ public static function client($server_version, $server_hostname,
393393
* @param bool $changeSessionID Allow phpCAS to change the session_id
394394
* (Single Sign Out/handleLogoutRequests
395395
* is based on that change)
396-
* @param \SessionHandlerInterface $sessionHandler the session handler
396+
* @param \SessionHandlerInterface|null $sessionHandler the session handler
397397
*
398398
* @return void a newly created CAS_Client object
399399
* @note Only one of the phpCAS::client() and phpCAS::proxy functions should be
@@ -402,7 +402,7 @@ public static function client($server_version, $server_hostname,
402402
*/
403403
public static function proxy($server_version, $server_hostname,
404404
$server_port, $server_uri, $service_base_url,
405-
$changeSessionID = true, \SessionHandlerInterface $sessionHandler = null
405+
$changeSessionID = true, ?\SessionHandlerInterface $sessionHandler = null
406406
) {
407407
phpCAS :: traceBegin();
408408
if (is_object(self::$_PHPCAS_CLIENT)) {

source/CAS/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ public function getAuthenticationCallerMethod ()
926926
* CAS_ServiceBaseUrl_Interface for custom
927927
* behavior. Added in 1.6.0. Similar to
928928
* serverName config in other CAS clients.
929-
* @param \SessionHandlerInterface $sessionHandler the session handler
929+
* @param \SessionHandlerInterface|null $sessionHandler the session handler
930930
*
931931
* @return self a newly created CAS_Client object
932932
*/
@@ -938,7 +938,7 @@ public function __construct(
938938
$server_uri,
939939
$service_base_url,
940940
$changeSessionID = true,
941-
\SessionHandlerInterface $sessionHandler = null
941+
?\SessionHandlerInterface $sessionHandler = null
942942
) {
943943
// Argument validation
944944
if (gettype($server_version) != 'string')

0 commit comments

Comments
 (0)