Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2026 at 16:55 UTC
Updated:
18 Apr 2026 at 21:30 UTC
Jump to comment: Most recent
We skip a number of deprecations in .deprecation-ignore.txt but some of these are outdated or could be tightened up.
Also, there's a number of tests that are tagged with the #[IgnoreDeprecations] attribute, but no deprecations are actually triggered during the test execution.
.deprecation-ignore.txt#[IgnoreDeprecations] from tests that do not trigger deprecations@phpstan-ignore annotations to prevent PHPStan errors in code that by removing #[IgnoreDeprecations] is no longer resolved as deprecated scopeStart within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mondrakeComment #4
mondrakeComment #5
smustgrave commentedNot entirely sure how to test this without going into every IgnoreDeprecation instance but pipeline agreed so will go with that.
Comment #6
amateescu commentedCommitted 4f89536 and pushed to main. Thanks!