1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

unpack() can return false on error (#5726)

* Unpack() can return false on error

* unpack only returns false rarely

supporess with @psalm-ignore-falsable-return

Co-authored-by: Bruce Weirdan <weirdan@gmail.com>

Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
This commit is contained in:
Robert Chettleburgh 2021-05-06 19:32:17 +01:00 committed by GitHub
parent 4b8bff45bd
commit fe190c2eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1163,7 +1163,8 @@ function uniqid(string $prefix = "", bool $more_entropy = false) : string {}
/**
* @psalm-pure
*
* @return array
* @return array|false
* @psalm-ignore-falsable-return
*
* @psalm-flow ($data) -> return
*/