Skip to content

Commit 5e32103

Browse files
authored
Signature on sign()
Signer interface says, $key can be string or instance of Lcobucci\JWT\Signer\Key, updating @param
1 parent ddce703 commit 5e32103

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Builder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use BadMethodCallException;
1111
use Lcobucci\JWT\Claim\Factory as ClaimFactory;
1212
use Lcobucci\JWT\Parsing\Encoder;
13+
use Lcobucci\JWT\Signer\Key;
1314

1415
/**
1516
* This class makes easier the token creation process
@@ -227,7 +228,7 @@ public function set($name, $value)
227228
* Signs the data
228229
*
229230
* @param Signer $signer
230-
* @param string $key
231+
* @param Key|string $key
231232
*
232233
* @return Builder
233234
*/

0 commit comments

Comments
 (0)