Skip to content

Tracking deprecations #434

@xificurk

Description

@xificurk

One of the popular strategies for marking deprecated code in libraries is to use @trigger_error('...', E_USER_DEPRECATED) call, see:

The main advantage and also its main disadvantage is that this method is by default side-effect free. You need to have custom error handler to collect and track usage of the deprecated code.

For PHPUnit there is symfony/phpunit-bridge that has quite an extensive feature set for detecting and tracking the deprecations ( https://symfony.com/doc/current/components/phpunit_bridge.html ).

I would like to add at least some basic support for detecting and tracking these deprecations to Nette Tester. Before I start working on any PRs, I would like to discuss, if this even is something that would be accepted. And if yes, what kind of support should I aim for in the first iteration?

Metadata

Metadata

Assignees

No one assigned

    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