Skip to content

Commit

Permalink
Decouple psr-http-message-bridge from extra.symfony.require for versi…
Browse files Browse the repository at this point in the history
…ons before 6.4
  • Loading branch information
nicolas-grekas committed Oct 30, 2023
1 parent 7c191ea commit 42276be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public function removeLegacyTags(array $data): array
continue;
}

if ('symfony/psr-http-message-bridge' === $name && 6.4 > $normalizedVersion) {
continue;
}

$constraint = new Constraint('==', $normalizedVersion);

if ($rootConstraint && $rootConstraint->matches($constraint)) {
Expand Down
1 change: 1 addition & 0 deletions src/PackageFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function removeLegacyPackages(array $data, RootPackageInterface $rootPack
!isset($knownVersions['splits'][$name])
|| array_intersect($versions, $lockedVersions[$name] ?? [])
|| (isset($rootConstraints[$name]) && !Intervals::haveIntersections($this->symfonyConstraints, $rootConstraints[$name]))
|| ('symfony/psr-http-message-bridge' === $name && 6.4 > $versions[0])
)) {
$filteredPackages[] = $package;
continue;
Expand Down

0 comments on commit 42276be

Please sign in to comment.