Skip to content

Commit 6a1392e

Browse files
Housekeeping: fix failing tests.
1 parent 28be753 commit 6a1392e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testData/fixtures/types/parameter-types-checks.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ function arrayTypes (array $array, iterable $iterable, $stringsArray) {
1818
};
1919
2020
function variadicTypesOne (string ...$stringVariadicArray) {
21-
return is_array($stringVariadicArray) ||
22-
<warning descr="[EA] Makes no sense, because it's always false according to resolved type. Ensure the parameter is not reused.">is_string($stringVariadicArray)</warning>;
21+
return <warning descr="[EA] Makes no sense, because it's always false according to resolved type. Ensure the parameter is not reused.">is_array($stringVariadicArray)</warning> ||
22+
is_string($stringVariadicArray);
2323
}
2424
function variadicTypesTwo (...$genericVariadicArray) {
2525
return is_array($genericVariadicArray) ||
26-
<warning descr="[EA] Makes no sense, because it's always false according to resolved type. Ensure the parameter is not reused.">is_string($genericVariadicArray)</warning>;
26+
is_string($genericVariadicArray);
2727
}
2828
2929
function callableTypes (callable $callable) {

0 commit comments

Comments
 (0)