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

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