Skip to content

Commit d637273

Browse files
committed
remove dead code
1 parent 57ed25e commit d637273

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
@@ -154,7 +154,7 @@ public function findSpecifiedType(
154154
foreach ($haystackArrayTypes as $haystackArrayType) {
155155
if ($haystackArrayType instanceof ConstantArrayType) {
156156
foreach ($haystackArrayType->getValueTypes() as $i => $haystackArrayValueType) {
157-
if (count($haystackArrayValueType->getFiniteTypes()) > 1 || $haystackArrayType->isOptionalKey($i)) {
157+
if ($haystackArrayType->isOptionalKey($i)) {
158158
continue;
159159
}
160160

0 commit comments

Comments
 (0)