Skip to content

Commit 604d1da

Browse files
committed
InArrayFunctionTypeSpecifyingExtension - skip literal array with unpacking
1 parent cbcb3d1 commit 604d1da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Type/Php/InArrayFunctionTypeSpecifyingExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ public function specifyTypes(FunctionReflection $functionReflection, FuncCall $n
5858
if ($item === null) {
5959
continue;
6060
}
61+
if ($item->unpack) {
62+
$types = null;
63+
break;
64+
}
6165
$itemTypes = $this->typeSpecifier->resolveIdentical(new Identical($needleExpr, $item->value), $scope, $context, null);
6266

6367
if ($types === null) {

0 commit comments

Comments
 (0)