1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Detailed return type for strtoupper

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

View File

@ -515,6 +515,10 @@ function strtolower(string $str) : string {}
/**
* @psalm-pure
*
* @return (
* $str is non-empty-string ? non-empty-string : string
* )
*
* @psalm-flow ($str) -> return
*/
function strtoupper(string $str) : string {}