Explicitly expect positive ints for depths in MD_STD::json_encode
This commit is contained in:
parent
e50f1f0526
commit
dc86540da2
|
@ -234,7 +234,7 @@ final class MD_STD {
|
||||||
*
|
*
|
||||||
* @param array<mixed> $value The value being encoded. Can be any type except a resource.
|
* @param array<mixed> $value The value being encoded. Can be any type except a resource.
|
||||||
* @param integer $options Bitmask consisting of JSON_FORCE_OBJECT, JSON_HEX_QUOT ...
|
* @param integer $options Bitmask consisting of JSON_FORCE_OBJECT, JSON_HEX_QUOT ...
|
||||||
* @param integer $depth Depth of coding.
|
* @param positive-int $depth Depth of coding.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -253,9 +253,9 @@ final class MD_STD {
|
||||||
*
|
*
|
||||||
* @see https://www.php.net/manual/en/function.json-encode.php
|
* @see https://www.php.net/manual/en/function.json-encode.php
|
||||||
*
|
*
|
||||||
* @param object $value The value being encoded. Can be any type except a resource.
|
* @param object $value The value being encoded. Can be any type except a resource.
|
||||||
* @param integer $options Bitmask consisting of JSON_FORCE_OBJECT, JSON_HEX_QUOT ...
|
* @param integer $options Bitmask consisting of JSON_FORCE_OBJECT, JSON_HEX_QUOT ...
|
||||||
* @param integer $depth Depth of coding.
|
* @param positive-int $depth Depth of coding.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user