@@ -291,7 +291,7 @@ $jwks = ['keys' => []];
291291
292292// JWK::parseKeySet($jwks) returns an associative array of **kid** to Firebase\JWT\Key
293293// objects. Pass this as the second parameter to JWT::decode.
294- JWT::decode($payload , JWK::parseKeySet($jwks));
294+ JWT::decode($jwt , JWK::parseKeySet($jwks));
295295```
296296
297297Using Cached Key Sets
@@ -350,7 +350,7 @@ use InvalidArgumentException;
350350use UnexpectedValueException;
351351
352352try {
353- $decoded = JWT::decode($payload , $keys);
353+ $decoded = JWT::decode($jwt , $keys);
354354} catch (InvalidArgumentException $e) {
355355 // provided key/key-array is empty or malformed.
356356} catch (DomainException $e) {
@@ -380,7 +380,7 @@ like this:
380380use Firebase\JWT\JWT;
381381use UnexpectedValueException;
382382try {
383- $decoded = JWT::decode($payload , $keys);
383+ $decoded = JWT::decode($jwt , $keys);
384384} catch (LogicException $e) {
385385 // errors having to do with environmental setup or malformed JWT Keys
386386} catch (UnexpectedValueException $e) {
@@ -395,7 +395,7 @@ instead, you can do the following:
395395
396396``` php
397397// return type is stdClass
398- $decoded = JWT::decode($payload , $keys);
398+ $decoded = JWT::decode($jwt , $keys);
399399
400400// cast to array
401401$decoded = json_decode(json_encode($decoded), true);
0 commit comments