Skip to content

Commit

Permalink
Fix: Flip
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 26, 2023
1 parent 71c555b commit c272105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Vendor/Composer/VersionConstraintNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ private static function removeOverlappingVersionConstraints(string $versionConst
continue;
}

if (Semver\Semver::satisfies(\ltrim($b, '^~'), $a)) {
$orConstraints[$j] = null;
} elseif (Semver\Semver::satisfies(\ltrim($a, '^~'), $b)) {
if (Semver\Semver::satisfies(\ltrim($a, '^~'), $b)) {
$orConstraints[$i] = null;
} elseif (Semver\Semver::satisfies(\ltrim($b, '^~'), $a)) {
$orConstraints[$j] = null;
}
}
}
Expand Down

0 comments on commit c272105

Please sign in to comment.