1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

refactor(json): fix PHPDoc tag @return with type mixed is not subtype of native type string.

This commit is contained in:
Awilum
2021-01-13 12:18:53 +03:00
parent 8731e89c04
commit 8d500d9a08

View File

@@ -39,7 +39,7 @@ class Json
*
* @return mixed A JSON string representing the original PHP value
*/
public function encode($input, int $options = 0, int $depth = 512): string
public function encode($input, int $options = 0, int $depth = 512)
{
$options = ($options & self::ESCAPE_UNICODE ? 0 : JSON_UNESCAPED_UNICODE)
| JSON_UNESCAPED_SLASHES