8000 feature #53150 [Contracts] Allow psr/container 1.1 again (derrabus) · symfony/symfony@a41993a · GitHub
[go: up one dir, main page]

Skip to content

Commit a41993a

Browse files
committed
feature #53150 [Contracts] Allow psr/container 1.1 again (derrabus)
This PR was merged into the 6.4 branch. Discussion ---------- [Contracts] Allow psr/container 1.1 again | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT The only difference between psr/container 1.1 and 2.0 is one additional return type on the `ContainerInterface::has()` method, see php-fig/container@1.1.2...2.0.2 This means that if a package is compatible with 2.0 already (== all implementations already have that return type), it remains compatible with 1.1. However, in #42088 we changed the composer.json of our service-contracts package and replaced `^1.1` with `^2.0`, dropping support for 1.1 although there was no need to do so. I'm migrating a larger application to Symfony 7 at the moment which also consumes various Laminas packages. Due to Laminas still being stuck on psr/container 1.1, I cannot upgrade to service-contracts 3 which in turn blocks my Symfony 7 upgrade. It would smoothen the upgrade path a lot for me, if we released a service-contracts 3.x that allows the installation of psr/container 1.1 again. Commits ------- 80d34d0 Allow psr/container 1.1 again
2 parents 5534989 + 80d34d0 commit a41993a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Contracts/Service/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.1",
20-
"psr/container": "^2.0"
20+
"psr/container": "^1.1|^2.0"
2121
},
2222
"conflict": {
2323
"ext-psr": "<1.1|>=2"

0 commit comments

Comments
 (0)
0