diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index e2e89cfaef8..6db374c4e34 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -6586,7 +6586,7 @@ 'join' => ['string', 'separator'=>'string', 'array'=>'array'], 'join\'1' => ['string', 'separator'=>'array'], 'json_decode' => ['mixed', 'json'=>'string', 'associative='=>'bool', 'depth='=>'int', 'flags='=>'int'], -'json_encode' => ['string|false', 'value'=>'mixed', 'flags='=>'int', 'depth='=>'int'], +'json_encode' => ['non-empty-string|false', 'value'=>'mixed', 'flags='=>'int', 'depth='=>'int'], 'json_last_error' => ['int'], 'json_last_error_msg' => ['string'], 'JsonException::__clone' => ['void'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 45445da2944..aeb0d8ca095 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -12476,7 +12476,7 @@ 'join\'1' => ['string', 'separator'=>'array'], 'jpeg2wbmp' => ['bool', 'jpegname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'], 'json_decode' => ['mixed', 'json'=>'string', 'associative='=>'bool', 'depth='=>'int', 'flags='=>'int'], - 'json_encode' => ['string|false', 'value'=>'mixed', 'flags='=>'int', 'depth='=>'int'], + 'json_encode' => ['non-empty-string|false', 'value'=>'mixed', 'flags='=>'int', 'depth='=>'int'], 'json_last_error' => ['int'], 'json_last_error_msg' => ['string'], 'judy_type' => ['int', 'array'=>'judy'], diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index e80a831f78c..a00fd2fcb75 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -1294,7 +1294,7 @@ function json_decode(string $json, ?bool $associative = null, int $depth = 512, /** * @psalm-pure * - * @return ($flags is 4194304 ? string : string|false) + * @return ($flags is 4194304 ? non-empty-string : non-empty-string|false) * * @psalm-flow ($value) -> return * @psalm-ignore-falsable-return