diff --git a/src/JWT/CustomTokenGenerator.php b/src/JWT/CustomTokenGenerator.php index 63b3480..31d7e1a 100644 --- a/src/JWT/CustomTokenGenerator.php +++ b/src/JWT/CustomTokenGenerator.php @@ -54,11 +54,11 @@ public function execute(CreateCustomToken $action): Token /** * @param non-empty-string $uid - * @param array $claims + * @param array|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);