Problem/Motivation

phpstan warns,

web/modules/composer/typed_data/src/Plugin/TypedDataFilter/FormatDateFilter.php 62 Direct injection of entity storage via $date_format_storage is not recommended. Inject Drupal\Core\Entity\EntityTypeManagerInterface and call getStorage() at the call-site instead.

Steps to reproduce

Scan the module with phpstan or Upgrade Status in Drupal 11.

Proposed resolution

call getStorage() instead.

Remaining tasks

make an MR.

Issue fork typed_data-3619370

Command icon Show commands

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

benstallings created an issue. See original summary.

benstallings’s picture

Assigned: benstallings » Unassigned
Status: Active » Needs review