Skip to content

#[IgnoreDeprecations] is not being identified as a marker of deprecated scope #109

Description

@mondrake

PHPUnit 10.5 introduced a new #[IgnoreDeprecations] attribute sebastianbergmann/phpunit#5532 to signal that a test is exercising deprecated code paths i.e. that calls to deprecated methods/functions are expected.

PHPStan however is reporting calls to deprecated functions in that test as errors.

Recently, a similar issue was reported for Symfony's PHPUnit-bridge definition of @group legacy annotated tests, #64

Issue found in Drupal's https://www.drupal.org/project/drupal/issues/3417066

Activity

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

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