diff --git a/docs/component/json.md b/docs/component/json.md index d6a842d9..3210a6fc 100644 --- a/docs/component/json.md +++ b/docs/component/json.md @@ -13,7 +13,5 @@ #### `Functions` - [decode](./../../src/Psl/Json/decode.php#L22) -- [encode](./../../src/Psl/Json/encode.php#L25) +- [encode](./../../src/Psl/Json/encode.php#L27) - [typed](./../../src/Psl/Json/typed.php#L20) - - diff --git a/src/Psl/Json/encode.php b/src/Psl/Json/encode.php index a029ed71..0ce7609b 100644 --- a/src/Psl/Json/encode.php +++ b/src/Psl/Json/encode.php @@ -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 {