diff --git a/src/Vendor/Composer/VersionConstraintNormalizer.php b/src/Vendor/Composer/VersionConstraintNormalizer.php index 2ddce839..e1c78329 100644 --- a/src/Vendor/Composer/VersionConstraintNormalizer.php +++ b/src/Vendor/Composer/VersionConstraintNormalizer.php @@ -82,7 +82,7 @@ private function normalizeVersionConstraint(string $versionConstraint): string $normalized = self::normalizeVersionConstraintSeparators($normalized); $normalized = self::removeDuplicateVersionConstraints($normalized); - $normalized = self::sortOrConstraints($normalized); + $normalized = self::sortVersionConstraints($normalized); return self::removeOverlappingConstraints($normalized); } @@ -118,7 +118,7 @@ private static function removeDuplicateVersionConstraints(string $versionConstra }, $orConstraints))); } - private static function sortOrConstraints(string $versionConstraint): string + private static function sortVersionConstraints(string $versionConstraint): string { $normalize = static function (string $versionConstraint): string { return \trim($versionConstraint, '<>=!~^');