Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Nov 19, 2024
1 parent 4c27e0f commit 980ccc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Type/Constant/ConstantArrayType.php
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,10 @@ public function findTypeAndMethodNames(bool $atLeastMaybe = true): array
}
}

if (!$atLeastMaybe || !$has->no()) {
$typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
if ($atLeastMaybe && $has->no()) {
continue;
}
$typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
}

return $typeAndMethods;
Expand Down

0 comments on commit 980ccc1

Please sign in to comment.