Skip to content

Commit 64803e8

Browse files
authored
fix php docblock
token and signature also allow `Key` as key, not only strings
1 parent a11ec5f commit 64803e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Token.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use DateTimeInterface;
1313
use Generator;
1414
use Lcobucci\JWT\Claim\Validatable;
15+
use Lcobucci\JWT\Signer\Key;
1516
use OutOfBoundsException;
1617

1718
/**
@@ -182,7 +183,7 @@ public function getClaim($name, $default = null)
182183
* Verify if the key matches with the one that created the signature
183184
*
184185
* @param Signer $signer
185-
* @param string $key
186+
* @param Key|string $key
186187
*
187188
* @return boolean
188189
*

0 commit comments

Comments
 (0)