1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Update conditional test to use filter_input with mixed return

This commit is contained in:
Corey Taylor 2023-01-15 07:02:37 -06:00
parent bbc522709b
commit 66ee278de8

View File

@ -1370,7 +1370,7 @@ class ConditionalTest extends TestCase
* @psalm-suppress MixedInferredReturnType
*/
function foo() : array {
return filter_input_array(INPUT_POST) ?? [];
return filter_input(INPUT_POST, "some_var") ?? [];
}',
],
'noCrashOnWeirdArrayKeys' => [