Skip to content

Commit

Permalink
Merge pull request #171 from creative-commoners/pulls/6/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 d466641 + 3428de0 commit bc6398f
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 bc6398f

Please sign in to comment.