Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy