Skip to content

Commit 42276be

Browse files
Decouple psr-http-message-bridge from extra.symfony.require for versions before 6.4
1 parent 7c191ea commit 42276be

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Cache.php

+4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ public function removeLegacyTags(array $data): array
7575
continue;
7676
}
7777

78+
if ('symfony/psr-http-message-bridge' === $name && 6.4 > $normalizedVersion) {
79+
continue;
80+
}
81+
7882
$constraint = new Constraint('==', $normalizedVersion);
7983

8084
if ($rootConstraint && $rootConstraint->matches($constraint)) {

src/PackageFilter.php

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function removeLegacyPackages(array $data, RootPackageInterface $rootPack
8080
!isset($knownVersions['splits'][$name])
8181
|| array_intersect($versions, $lockedVersions[$name] ?? [])
8282
|| (isset($rootConstraints[$name]) && !Intervals::haveIntersections($this->symfonyConstraints, $rootConstraints[$name]))
83+
|| ('symfony/psr-http-message-bridge' === $name && 6.4 > $versions[0])
8384
)) {
8485
$filteredPackages[] = $package;
8586
continue;

0 commit comments

Comments
 (0)