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:
parent
bbc522709b
commit
66ee278de8
@ -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' => [
|
||||
|
Loading…
Reference in New Issue
Block a user