Skip to content

Commit

Permalink
Fix deprecated implicit nullable parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Dec 19, 2024
1 parent c91a6b4 commit 3b8378b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JWT/CustomTokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public function execute(CreateCustomToken $action): Token

/**
* @param non-empty-string $uid
* @param array<non-empty-string, mixed> $claims
* @param array<non-empty-string, mixed>|null $claims
*
* @throws CustomTokenCreationFailed
*/
public function createCustomToken(string $uid, ?array $claims = null, Duration|DateInterval|string|int $timeToLive = null): Token
public function createCustomToken(string $uid, array|null $claims = null, Duration|DateInterval|string|int|null $timeToLive = null): Token
{
$action = CreateCustomToken::forUid($uid);

Expand Down

0 comments on commit 3b8378b

Please sign in to comment.