Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] ParameterBag signature changed in a patch version #45707

Closed as not planned
@BafS

Description

@BafS

Symfony version(s) affected

6.0.5

Description

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.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions