Active
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Major
Category:
Plan
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2024 at 22:45 UTC
Updated:
24 Jun 2024 at 05:24 UTC
Jump to comment: Most recent
Among our efforts to add strict typing to core, tests are good early targets, because the majority of test code is internal API.
Add return typehints to the test codebase, first where non-disruptive, then where possibly disruptive (base classes, traits, etc.).
SlevomatCodingStandard.TypeHints.ReturnTypeHint phpcs code sniff on */tests/*Return typehints on methods in test code.
Maybe?
Comments
Comment #2
xjmComment #3
xjmComment #4
mstrelan commented