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:
commit
bebce06014
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user