Skip to content

Commit ad41760

Browse files
authored
Merge pull request #35 from SiteGround/main
refactor: php 8.4 - Deprecate implicitly nullable parameter types
2 parents 60b6fb2 + 415332d commit ad41760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/JWT.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct(
8484
string $algo = 'HS256',
8585
int $maxAge = 3600,
8686
int $leeway = 0,
87-
string $pass = null
87+
?string $pass = null
8888
) {
8989
$this->validateConfig($key, $algo, $maxAge, $leeway);
9090

@@ -179,7 +179,7 @@ public function decode(string $token, bool $verify = true): array
179179
*
180180
* @param int|null $timestamp
181181
*/
182-
public function setTestTimestamp(int $timestamp = null): self
182+
public function setTestTimestamp(?int $timestamp = null): self
183183
{
184184
$this->timestamp = $timestamp;
185185

0 commit comments

Comments
 (0)