We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d43feca commit 3f0bffcCopy full SHA for 3f0bffc
src/Http/Serialize/Json.php
@@ -6,7 +6,7 @@
6
7
class Json implements SerializerInterface
8
{
9
- public function serialize(mixed $data): string|bool
+ public function serialize(mixed $data): string
10
11
return json_encode($data, JSON_THROW_ON_ERROR);
12
}
src/Http/Serialize/SerializerInterface.php
@@ -11,11 +11,9 @@ interface SerializerInterface
*
* @param string|int|float|bool|array<mixed>|null $data
13
14
- * @return string|bool
15
- *
16
* @throws \JsonException
17
*/
18
- public function serialize(mixed $data): string|bool;
+ public function serialize(mixed $data): string;
19
20
/**
21
* Unserialize the given string.
0 commit comments