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:
parent
2671ea78da
commit
e037c4496a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user