Skip to content

Commit

Permalink
Skip zero/inf bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 6, 2024
1 parent 2586069 commit bf14f4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ public function process(Event $event): void
$phpstanConstraint = null;
if (array_key_exists('phpstan/phpstan', $packageRequires)) {
$phpstanConstraint = $packageRequires['phpstan/phpstan']->getConstraint();
if ($phpstanConstraint->getLowerBound()->isZero()) {
continue;
}
if ($phpstanConstraint->getUpperBound()->isPositiveInfinity()) {
continue;
}
$phpstanVersionConstraints[] = $phpstanConstraint;
}

Expand Down

0 comments on commit bf14f4a

Please sign in to comment.