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 4199446 commit 9a593a7Copy full SHA for 9a593a7
src/lib/Serialization/Serializer.php
@@ -29,7 +29,7 @@ public function __construct(protected SerializationConfig $config, protected Log
29
#[\Override]
30
public function as_json(mixed $value, int $flags = 0): string
31
{
32
- return json_encode($this->as_array($value), $flags) ?: throw new Exception('Unable to encode to json');
+ return json_encode($this->as_array($value), $flags);
33
}
34
35
/**
0 commit comments