Skip to content

Impact of PHPUnit support for regular expressions of #[IgnoreDeprecations] attribute #924

@mondrake

Description

@mondrake

Bug report

PHPUnit's sebastianbergmann/phpunit#6341 introduced a subtle change in the meaning of the #[IgnoreDeprecations] attribute in PHPUnit 12.4.0.

If before having #[IgnoreDeprecations] on a class/method could mean the entire code block was to be considered deprecated scope, now if a regex is specified, we cannot assume that any longer.

We need to adjust IgnoreDeprecationsScope so that if arguments are passed to #[IgnoreDeprecations], we do not consider the scope as deprecated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions