Skip to content

Commit 980ccc1

Browse files
Fix lint
1 parent 4c27e0f commit 980ccc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Type/Constant/ConstantArrayType.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,10 @@ public function findTypeAndMethodNames(bool $atLeastMaybe = true): array
594594
}
595595
}
596596

597-
if (!$atLeastMaybe || !$has->no()) {
598-
$typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
597+
if ($atLeastMaybe && $has->no()) {
598+
continue;
599599
}
600+
$typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
600601
}
601602

602603
return $typeAndMethods;

0 commit comments

Comments
 (0)