Skip to content

Commit

Permalink
Merge pull request #9842 from kkmuffme/uniqid-wrong-return-type
Browse files Browse the repository at this point in the history
uniqid return type non-empty-string inconsistent
  • Loading branch information
orklah committed May 30, 2023
2 parents 88aae91 + 51d3276 commit bebce06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ function ldap_escape(string $value, string $ignore = "", int $flags = 0) : strin
function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0) {}

/**
* The conditional return type below relies on the fact that JSON_THROW_ON_ERROR is
* The conditional return type below relies on the fact that JSON_THROW_ON_ERROR is
* the highest-valued of JSON constants
* @psalm-pure
*
Expand Down Expand Up @@ -1542,6 +1542,8 @@ function sapi_windows_cp_conv($in_codepage, $out_codepage, string $subject) : ?s
/**
* @psalm-pure
*
* @return non-empty-string
*
* @psalm-flow ($prefix) -> return
*/
function uniqid(string $prefix = "", bool $more_entropy = false) : string {}
Expand Down

0 comments on commit bebce06

Please sign in to comment.