Skip to content

Commit

Permalink
Update conditional test to use filter_input with mixed return
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Jan 15, 2023
1 parent bbc5227 commit 66323c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TypeReconciliation/ConditionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ function foo(A $a) : B {
* @psalm-suppress MixedInferredReturnType
*/
function foo() : array {
return filter_input_array(INPUT_POST) ?? [];
return filter_input(INPUT_POST) ?? [];
}',
],
'noCrashOnWeirdArrayKeys' => [
Expand Down

0 comments on commit 66323c6

Please sign in to comment.