Skip to content

Commit ac26221

Browse files
authored
Merge pull request #14 from teg1c/master
修复 refresh_ttl 为 null 时报错
2 parents 1aeecf2 + 27d3895 commit ac26221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)