Needs review
Project:
Key
Version:
2.0.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2026 at 16:10 UTC
Updated:
13 Oct 2026 at 14:27 UTC
Jump to comment: Most recent
Scanning the module with phpstan or Upgrade Status results in,
Direct injection of entity storage via $storage is not recommended. Inject Drupal\Core\Entity\EntityTypeManagerInterface and call getStorage() at the call-site instead.
Call getStorage() instead.
Conceivably a third party could have extended the offending classes, and would have to also update the dependencies to match.
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
benstallings commentedComment #4
ptmkenny commentedI think this should be part of Key 2.x. Key 1.x is stable and widely used; this kind of potential BC break, even if for a small number of sites, is not worth it just because phpstan said it's not recommended.
Comment #7
benstallings commented@ptmkenny, thank you for the feedback. I've made a new MR for 2.0.x.