You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signature of ParameterBag changed in version 6.0.5 (\UnitEnum).
We are extending EnvPlaceholderParameterBag and ParameterBag (since the classes are not marked final) but the signature of some methods changed in a patch version which is a breaking change. Apparently it was introduced in #44868.
You are right, unfortunately a BC break was introduced here. However, fixing it now (essentially by reverting the change) would probably do more harm than good. Let's close as won't fix?
Symfony version(s) affected
6.0.5
Description
The signature of ParameterBag changed in version 6.0.5 (
\UnitEnum
).We are extending
EnvPlaceholderParameterBag
andParameterBag
(since the classes are not marked final) but the signature of some methods changed in a patch version which is a breaking change. Apparently it was introduced in #44868.See: symfony/dependency-injection@v6.0.3...v6.0.5
How to reproduce
Extends "ParameterBag#set" using
symfony/dependency-injection
v6.0.0, update to v6.0.5 and it will break.Possible Solution
Use the phpdoc to have the updated signature.
Additional Context
No response
The text was updated successfully, but these errors were encountered: