Skip to content

Commit

Permalink
Merge pull request #227 from creative-commoners/pulls/3/php84
Browse files Browse the repository at this point in the history
API Explicity mark nullable parameters for PHP 8.4
  • Loading branch information
GuySartorelli authored Dec 2, 2024
2 parents 30fdc58 + a1ebe0a commit 437f775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Security/LogInAuthenticationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function authenticateRequest(HTTPRequest $request)
* @param HTTPRequest|null $request
* @throws InvalidArgumentException
*/
public function logIn(Member $member, $persistent = false, HTTPRequest $request = null)
public function logIn(Member $member, $persistent = false, ?HTTPRequest $request = null)
{
// Fall back to retrieving request from current Controller if available
if ($request === null) {
Expand Down Expand Up @@ -108,7 +108,7 @@ public function logIn(Member $member, $persistent = false, HTTPRequest $request
/**
* @param HTTPRequest $request|null
*/
public function logOut(HTTPRequest $request = null)
public function logOut(?HTTPRequest $request = null)
{
// noop
}
Expand Down
4 changes: 2 additions & 2 deletions src/Security/LogOutAuthenticationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function authenticateRequest(HTTPRequest $request)
* @param bool $persistent
* @param HTTPRequest $request|null
*/
public function logIn(Member $member, $persistent = false, HTTPRequest $request = null)
public function logIn(Member $member, $persistent = false, ?HTTPRequest $request = null)
{
// noop
}
Expand All @@ -41,7 +41,7 @@ public function logIn(Member $member, $persistent = false, HTTPRequest $request
* @param HTTPRequest $request|null
* @throws InvalidArgumentException
*/
public function logOut(HTTPRequest $request = null)
public function logOut(?HTTPRequest $request = null)
{
// Fall back to retrieving request from current Controller if available
if ($request === null) {
Expand Down

0 comments on commit 437f775

Please sign in to comment.