Skip to content

Commit

Permalink
API Explicity mark nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 30fdc58 commit a1ebe0a
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 a1ebe0a

Please sign in to comment.