You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
As this project provides a DeprecatedScopeResolver as an extension point, this is something that belongs to https://github.com/phpstan/phpstan-phpunit to implement such a resolver aware of the phpunit attribute
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, #64Issue found in Drupal's https://www.drupal.org/project/drupal/issues/3417066
The text was updated successfully, but these errors were encountered: