Skip to content

Rely on symfony/deprecation-contracts for deprecations #665

Description

@alexisLefebvre

Is your feature request related to a problem? Please describe.
Current deprecations use a code like this:

@trigger_error('Setting "environment" property is deprecated, please use static::$env.', \E_USER_DEPRECATED);

Describe the solution you'd like

  • https://github.com/symfony/deprecation-contracts could be used instead.

  • Consider adding more deprecations if Symfony has built-in helpers that replace the ones from this bundle:

    • if it requires a minimal version that is higher than the minimal version required by this bundle
      • then throw a deprecation only if this version constraint is fulfilled by the project

Describe alternatives you've considered
.

Additional context
.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions