Skip to content

Commit

Permalink
Merge pull request #202 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 a8628b5 + a8f9184 commit 8a66091
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/CredentialRepositoryProviderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trait CredentialRepositoryProviderTrait
*/
protected function getCredentialRepository(
StoreInterface $store,
RegisteredMethod $registeredMethod = null
?RegisteredMethod $registeredMethod = null
): CredentialRepository {
$state = $store->getState();

Expand Down
2 changes: 1 addition & 1 deletion src/VerifyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function getComponent(): string
*/
protected function getCredentialRequestOptions(
StoreInterface $store,
RegisteredMethod $registeredMethod = null,
?RegisteredMethod $registeredMethod = null,
$reset = false
): PublicKeyCredentialRequestOptions {
$state = $store->getState();
Expand Down
4 changes: 2 additions & 2 deletions tests/RegisterHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ public function testRegister(
$mockResponse,
$expectedResult,
$expectedCredentialCount,
callable $responseValidatorMockCallback = null,
callable $storeModifier = null
?callable $responseValidatorMockCallback = null,
?callable $storeModifier = null
) {
/** @var RegisterHandler&MockObject $handlerMock */
$handlerMock = $this->getMockBuilder(RegisterHandler::class)
Expand Down
2 changes: 1 addition & 1 deletion tests/VerifyHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function testVerifyReturnsErrorWhenRequiredInformationIsMissing()
public function testVerify(
$mockResponse,
$expectedResult,
callable $responseValidatorMockCallback = null
?callable $responseValidatorMockCallback = null
) {
/** @var VerifyHandler&MockObject $handlerMock */
$handlerMock = $this->getMockBuilder(VerifyHandler::class)
Expand Down

0 comments on commit 8a66091

Please sign in to comment.