Skip to content

Commit 57ed25e

Browse files
committed
Prevent duplicate work
1 parent 0ff7e44 commit 57ed25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Comparison/ImpossibleCheckTypeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function findSpecifiedType(
163163
continue;
164164
}
165165

166-
foreach ($haystackArrayValueType->getConstantScalarTypes() as $constantScalarType) {
166+
foreach ($haystackArrayValueConstantScalarTypes as $constantScalarType) {
167167
if ($constantScalarType->isSuperTypeOf($needleType)->yes()) {
168168
continue 3;
169169
}

0 commit comments

Comments
 (0)