Needs review
Project:
Drupal core
Version:
main
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Nov 2026 at 10:37 UTC
Updated:
23 Nov 2026 at 10:46 UTC
Jump to comment: Most recent
PHPStan currently flags several class.nameCase errors across Drupal core where class, interface, or trait names are referenced with incorrect capitalization. These errors are currently ignored in core/.phpstan-baseline.php.
Although PHP treats class names as case-insensitive at runtime, mismatched casing reduces code readability, breaks consistency with PSR-4/Drupal coding standards, and adds unnecessary entries to the PHPStan baseline.
class.nameCase to match their exact declared casing.core/.phpstan-baseline.php to remove the resolved class.nameCase entries.class.nameCase occurrences in core.core/.phpstan-baseline.php.None.
None.
None.
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
mallezie