Needs review
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2026 at 07:19 UTC
Updated:
12 Nov 2026 at 14:04 UTC
Jump to comment: Most recent
Baselined PHPStan L3 errors in namespaces Drupal\Core\Test and Drupal\TestTools are noisy when it comes to prepare code for PHPUnit 13 adoption.
Remove baselined errors for those namespaces and run PHPStan analysis.
Fix the errors in this issue to simplify PHPUnit 13 adoption issue.
Start 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 #3
mondrakeComment #4
mondrakeComment #5
smustgrave commentedSpot checked with the eye test (wasn't sure how else to review).
Based on the title this seems like it could be a massive MR but seems reasonably scoped, thanks for that.
Changes for
core/lib/Drupal/Core/Test/EventSubscriber/FieldStorageCreateCheckSubscriber.phpI had to do for a client project running level5 so know that works.Rest looks good to me at least.
Comment #6
mstrelan commentedI reviewed these changes and then tested them at higher levels to see if they surface any additional violations. Have provided some suggestions. Feel free to disagree with any of them.
Comment #7
mondrakeThank you @mstrelan. Your points addressed.