@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | * Decodes a JWT string into a PHP object. |
49 | 49 | * |
50 | 50 | * @param string $jwt The JWT |
51 | - * @param string|array $key The key, or map of keys. |
|
51 | + * @param string $key The key, or map of keys. |
|
52 | 52 | * If the algorithm used is asymmetric, this is the public key |
53 | - * @param array $allowed_algs List of supported verification algorithms |
|
53 | + * @param string[] $allowed_algs List of supported verification algorithms |
|
54 | 54 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
55 | 55 | * |
56 | 56 | * @return object The JWT's payload as a PHP object |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * Sign a string with a given key and algorithm. |
175 | 175 | * |
176 | 176 | * @param string $msg The message to sign |
177 | - * @param string|resource $key The secret key |
|
177 | + * @param string $key The secret key |
|
178 | 178 | * @param string $alg The signing algorithm. |
179 | 179 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
180 | 180 | * |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * @param string $value A PHP value |
48 | 48 | * |
49 | - * @return bool True if the value would require double quotes |
|
49 | + * @return integer True if the value would require double quotes |
|
50 | 50 | */ |
51 | 51 | public static function requiresDoubleQuoting($value) |
52 | 52 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param string $scalar |
216 | 216 | * @param string $delimiters |
217 | - * @param array $stringDelimiters |
|
217 | + * @param string[] $stringDelimiters |
|
218 | 218 | * @param int &$i |
219 | 219 | * @param bool $evaluate |
220 | 220 | * @param array $references |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | * |
276 | 276 | * @param string $scalar |
277 | 277 | * @param int &$i |
278 | + * @param integer $i |
|
278 | 279 | * |
279 | 280 | * @return string A YAML string |
280 | 281 | * |
@@ -314,6 +314,13 @@ |
||
314 | 314 | return empty($data) ? null : $data; |
315 | 315 | } |
316 | 316 | |
317 | + /** |
|
318 | + * @param integer $offset |
|
319 | + * @param null|string $yaml |
|
320 | + * @param boolean $exceptionOnInvalidType |
|
321 | + * @param boolean $objectSupport |
|
322 | + * @param boolean $objectForMap |
|
323 | + */ |
|
317 | 324 | private function parseBlock($offset, $yaml, $exceptionOnInvalidType, $objectSupport, $objectForMap) |
318 | 325 | { |
319 | 326 | $skippedLineNumbers = $this->skippedLineNumbers; |