Skip to content

Commit 705d6a3

Browse files
authored
chore: add ArrayAccess to PHPDoc for JWT::decode (#443)
1 parent 3b454f9 commit 705d6a3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/JWT.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,15 @@ class JWT
6969
* Decodes a JWT string into a PHP object.
7070
*
7171
* @param string $jwt The JWT
72-
* @param Key|array<string,Key> $keyOrKeyArray The Key or associative array of key IDs (kid) to Key objects.
73-
* If the algorithm used is asymmetric, this is the public key
74-
* Each Key object contains an algorithm and matching key.
75-
* Supported algorithms are 'ES384','ES256', 'HS256', 'HS384',
76-
* 'HS512', 'RS256', 'RS384', and 'RS512'
72+
* @param Key|ArrayAccess<string,Key>|array<string,Key> $keyOrKeyArray The Key or associative array of key IDs
73+
* (kid) to Key objects.
74+
* If the algorithm used is asymmetric, this is
75+
* the public key.
76+
* Each Key object contains an algorithm and
77+
* matching key.
78+
* Supported algorithms are 'ES384','ES256',
79+
* 'HS256', 'HS384', 'HS512', 'RS256', 'RS384'
80+
* and 'RS512'.
7781
*
7882
* @return stdClass The JWT's payload as a PHP object
7983
*

0 commit comments

Comments
 (0)