1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Utilize non-falsy-string

This commit is contained in:
Markus Staab 2021-07-15 20:40:18 +02:00 committed by GitHub
parent 2671ea78da
commit e037c4496a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,7 +516,9 @@ function strtolower(string $str) : string {}
* @psalm-pure
*
* @return (
* $str is non-empty-string ? non-empty-string : string
* $str is non-falsy-string
* ? non-falsy-string
* : ($str is non-empty-string ? non-empty-string : string)
* )
*
* @psalm-flow ($str) -> return