diff --git a/stubs/core.stub b/stubs/core.stub index 652fed707d..ff0980db3d 100644 --- a/stubs/core.stub +++ b/stubs/core.stub @@ -69,7 +69,7 @@ function str_shuffle(string $string): string {} /** * @param array $result - * @param-out array|string> $result + * @param-out ($string is lowercase-string ? array|lowercase-string> : array|string>) $result */ function parse_str(string $string, array &$result): void {} diff --git a/tests/PHPStan/Analyser/nsrt/lowercase-string-parse.php b/tests/PHPStan/Analyser/nsrt/lowercase-string-parse.php new file mode 100644 index 0000000000..ba95e975da --- /dev/null +++ b/tests/PHPStan/Analyser/nsrt/lowercase-string-parse.php @@ -0,0 +1,36 @@ +