Skip to content

Commit

Permalink
json_encode never returns an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteel committed Jan 27, 2024
1 parent 881b821 commit a4ba3e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psl/Json/encode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* @pure
*
* @throws Exception\EncodeException If an error occurred.
*
* @return non-empty-string
*/
function encode(mixed $value, bool $pretty = false, int $flags = 0): string
{
Expand Down

0 comments on commit a4ba3e4

Please sign in to comment.