Skip to content

Commit f1cf401

Browse files
bug #1003 Decouple psr-http-message-bridge from extra.symfony.require for versions before 6.4 (nicolas-grekas)
This PR was merged into the 1.x branch. Discussion ---------- Decouple psr-http-message-bridge from extra.symfony.require for versions before 6.4 Should fix issues like getsentry/sentry-symfony#750 and symfony/recipes#1236 Before 6.4, the bridge was not in `symfony/symfony` so that `extra.symfony.require` shouldn't apply to earlier versions. We *could* improve the API and flex to handle this concern at a more generic level, but this is so rare that I suggest hard-coding the rule in flex. Commits ------- 42276be Decouple psr-http-message-bridge from extra.symfony.require for versions before 6.4
2 parents 7c25be3 + 42276be commit f1cf401

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)