Active
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2026 at 14:42 UTC
Updated:
17 Apr 2026 at 14:57 UTC
Jump to comment: Most recent
Adding return types to runtime code has BC concerns, but adding to test code should be straightforward and can be at least partially automated with rector.
My suggestion would be to do, for core/tests:
Remove baseline entries and manually add missing return types and other fixes for Unit tests.
Note that some of the failures come from usage in tests of traits that live in the runtime namespaces, and cannot be fixed in this 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