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 d466641 commit 3428de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function getLostPasswordHandler($link)
* @param ValidationResult $result A validationresult which is either valid or contains the error message(s)
* @return Member The matched member, or null if the authentication fails
*/
public function authenticate(array $data, HTTPRequest $request, ValidationResult &$result = null)
public function authenticate(array $data, HTTPRequest $request, ?ValidationResult &$result = null)
{
try {
$this->service->enforceLogin($request);
Expand Down Expand Up @@ -189,7 +189,7 @@ public function authenticate(array $data, HTTPRequest $request, ValidationResult
* @param ValidationResult $result
* @return ValidationResult
*/
public function checkPassword(Member $member, $password, ValidationResult &$result = null)
public function checkPassword(Member $member, $password, ?ValidationResult &$result = null)
{
// No-op
}
Expand Down
2 changes: 1 addition & 1 deletion src/RealMeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ private function getRequestedAuthnContext()
*
* @return Auth
*/
public function getAuth(HTTPRequest $request = null)
public function getAuth(?HTTPRequest $request = null)
{
if (isset($this->auth)) {
return $this->auth;
Expand Down

0 comments on commit 3428de0

Please sign in to comment.