From 5e32103f005cbf32fe8930f55dbaf7aaa3c88af0 Mon Sep 17 00:00:00 2001 From: Miro Svrtan Date: Sun, 20 Aug 2017 13:43:55 +0200 Subject: [PATCH] Signature on sign() Signer interface says, $key can be string or instance of Lcobucci\JWT\Signer\Key, updating @param --- src/Builder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Builder.php b/src/Builder.php index 8aeaceba..af1f643a 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -10,6 +10,7 @@ use BadMethodCallException; use Lcobucci\JWT\Claim\Factory as ClaimFactory; use Lcobucci\JWT\Parsing\Encoder; +use Lcobucci\JWT\Signer\Key; /** * This class makes easier the token creation process @@ -227,7 +228,7 @@ public function set($name, $value) * Signs the data * * @param Signer $signer - * @param string $key + * @param Key|string $key * * @return Builder */