We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60b6fb2 + 415332d commit ad41760Copy full SHA for ad41760
1 file changed
src/JWT.php
@@ -84,7 +84,7 @@ public function __construct(
84
string $algo = 'HS256',
85
int $maxAge = 3600,
86
int $leeway = 0,
87
- string $pass = null
+ ?string $pass = null
88
) {
89
$this->validateConfig($key, $algo, $maxAge, $leeway);
90
@@ -179,7 +179,7 @@ public function decode(string $token, bool $verify = true): array
179
*
180
* @param int|null $timestamp
181
*/
182
- public function setTestTimestamp(int $timestamp = null): self
+ public function setTestTimestamp(?int $timestamp = null): self
183
{
184
$this->timestamp = $timestamp;
185
0 commit comments