diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 9d5f9cf6509..cfe609872df 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -515,6 +515,12 @@ function strtolower(string $str) : string {} /** * @psalm-pure * + * @return ( + * $str is non-falsy-string + * ? non-falsy-string + * : ($str is non-empty-string ? non-empty-string : string) + * ) + * * @psalm-flow ($str) -> return */ function strtoupper(string $str) : string {}