Skip to content

Commit 5dae39c

Browse files
committed
Merge branch 'master' of github.com:hyperf-ext/jwt
2 parents b95bf2a + a4ecda6 commit 5dae39c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

publish/jwt.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
|
9999
*/
100100

101-
'ttl' => env('JWT_TTL', 3600),
101+
'ttl' => (int) env('JWT_TTL', 3600),
102102

103103
/*
104104
|--------------------------------------------------------------------------
@@ -117,7 +117,7 @@
117117
|
118118
*/
119119

120-
'refresh_ttl' => env('JWT_REFRESH_TTL', 3600 * 24 * 14),
120+
'refresh_ttl' => (int) env('JWT_REFRESH_TTL', 3600 * 24 * 14),
121121

122122
/*
123123
|--------------------------------------------------------------------------
@@ -204,7 +204,7 @@
204204
|
205205
*/
206206

207-
'leeway' => env('JWT_LEEWAY', 0),
207+
'leeway' => (int) env('JWT_LEEWAY', 0),
208208

209209
/*
210210
|--------------------------------------------------------------------------
@@ -231,7 +231,7 @@
231231
|
232232
*/
233233

234-
'blacklist_grace_period' => env('JWT_BLACKLIST_GRACE_PERIOD', 0),
234+
'blacklist_grace_period' => (int) env('JWT_BLACKLIST_GRACE_PERIOD', 0),
235235

236236
/*
237237
|--------------------------------------------------------------------------

src/Blacklist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Blacklist
4545
/**
4646
* Constructor.
4747
*/
48-
public function __construct(StorageInterface $storage, int $gracePeriod, int $refreshTtl)
48+
public function __construct(StorageInterface $storage, int $gracePeriod, ?int $refreshTtl)
4949
{
5050
$this->storage = $storage;
5151
$this->gracePeriod = $gracePeriod;

0 commit comments

Comments
 (0)