Needs review
Project:
Drupal core
Version:
main
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Nov 2026 at 10:31 UTC
Updated:
26 Nov 2026 at 15:43 UTC
Jump to comment: Most recent
PHPStan currently flags several class.notFound errors across Drupal core where a @return PHPDoc annotation specifies a class is not found. This mostly points to misnamed FQN.
Those are candidates for easy fixes, and also remove some related issues from the baseline automatically.
class.notFound and fix them
core/.phpstan-baseline.php to remove the resolved class.notFound entries.class.notFound 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
mallezieLeft out here are class.notFound issues in lib/Drupal/Core/Mailer
Those will need a seperate issue, since those require more non-trivial changes.
Most changes here, relate to updating incorrect phpdoc comments which reference incorrect classes.
One question here is, i've included changes for the Doctrine/Annotation fork which is pulled in drupal, might be better to ignore that component from phpstan, since this will be removed completely in D13 IIRC.