From 8d500d9a087543207eb506635cb1e459c9370696 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 13 Jan 2021 12:18:53 +0300 Subject: [PATCH] refactor(json): fix PHPDoc tag @return with type mixed is not subtype of native type string. --- src/flextype/Support/Serializers/Json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/Support/Serializers/Json.php b/src/flextype/Support/Serializers/Json.php index 3944b8f1..673789e2 100644 --- a/src/flextype/Support/Serializers/Json.php +++ b/src/flextype/Support/Serializers/Json.php @@ -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