Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniqid return type non-empty-string inconsistent #9842

Merged
merged 1 commit into from
May 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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