diff --git a/src/JWT.php b/src/JWT.php index 6a252a1..8683994 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -84,7 +84,7 @@ public function __construct( string $algo = 'HS256', int $maxAge = 3600, int $leeway = 0, - string $pass = null + ?string $pass = null ) { $this->validateConfig($key, $algo, $maxAge, $leeway); @@ -179,7 +179,7 @@ public function decode(string $token, bool $verify = true): array * * @param int|null $timestamp */ - public function setTestTimestamp(int $timestamp = null): self + public function setTestTimestamp(?int $timestamp = null): self { $this->timestamp = $timestamp;