1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-23 06:11:25 +01:00

Merge pull request #9842 from kkmuffme/uniqid-wrong-return-type

uniqid return type non-empty-string inconsistent
This commit is contained in:
orklah 2023-05-30 21:45:16 +02:00 committed by GitHub
commit bebce06014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
*
@ -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 {}