Skip to content

Commit ccc74fb

Browse files
authored
docs: add resource type as 2nd param in decode method (#205)
1 parent 23192ac commit ccc74fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/JWT.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ class JWT
5050
/**
5151
* Decodes a JWT string into a PHP object.
5252
*
53-
* @param string $jwt The JWT
54-
* @param string|array $key The key, or map of keys.
55-
* If the algorithm used is asymmetric, this is the public key
56-
* @param array $allowed_algs List of supported verification algorithms
57-
* Supported algorithms are 'ES256', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', and 'RS512'
53+
* @param string $jwt The JWT
54+
* @param string|array|resource $key The key, or map of keys.
55+
* If the algorithm used is asymmetric, this is the public key
56+
* @param array $allowed_algs List of supported verification algorithms
57+
* Supported algorithms are 'ES256', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', and 'RS512'
5858
*
5959
* @return object The JWT's payload as a PHP object
6060
*

0 commit comments

Comments
 (0)