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:
@@ -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
|
||||
|
Reference in New Issue
Block a user