10000 [PHPUnitBridge] Provide option to disable DeprecationErrorHandler · Issue #18222 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[PHPUnitBridge] Provide option to disable DeprecationErrorHandler #18222
Closed
@slootjes

Description

@slootjes

I'm working on a 2.8 project and some bundles are using deprecated functions which causes a lot of "Remaining deprecation notices" after outputting my test results. I would like to see an option to disable the DeprecationErrorHandler in general so no output is done at all regarding deprecation warnings.

I think there are roughly 2 options:

  • Add a "SYMFONY_DEPRECATIONS_HELPER_DISABLE" environment variable so the handler is not registered
  • Add a "SYMFONY_DEPRECATIONS_HELPER" = "none" option so the handler doesn't do anything

For me option 1 would seem the make the most sense, why load the handler in the first place if you don't want to use it right? :)

Just to be clear: I am aware of the "weak" option but my project will run for a few month tops so I am not interested to migrate to 3.0 standards in this case.

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

      0