From 42276be3bf961444110e6856c14cc9f047b65d05 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 30 Oct 2023 19:21:35 +0100 Subject: [PATCH] Decouple psr-http-message-bridge from extra.symfony.require for versions before 6.4 --- src/Cache.php | 4 ++++ src/PackageFilter.php | 1 + 2 files changed, 5 insertions(+) diff --git a/src/Cache.php b/src/Cache.php index 12f71dd94..6ecca1590 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -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)) { diff --git a/src/PackageFilter.php b/src/PackageFilter.php index d1d9709b5..091bcd79b 100644 --- a/src/PackageFilter.php +++ b/src/PackageFilter.php @@ -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;