Skip to content

Commit 9a593a7

Browse files
committed
fix another incorrect assertion from psalm
Signed-off-by: Robert Landers <landers.robert@gmail.com>
1 parent 4199446 commit 9a593a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Serialization/Serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(protected SerializationConfig $config, protected Log
2929
#[\Override]
3030
public function as_json(mixed $value, int $flags = 0): string
3131
{
32-
return json_encode($this->as_array($value), $flags) ?: throw new Exception('Unable to encode to json');
32+
return json_encode($this->as_array($value), $flags);
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)