Problem/Motivation

phpstan reports,

Function entity_entity_operation() implements hook_entity_operation but is missing the CacheableMetadata parameter added in Drupal 11.3. Update the signature to: entity_entity_operation(\Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Cache\CacheableMetadata $cacheability).

Proposed resolution

Update the signature as directed.

Remaining tasks

Make an MR. I'm assigning this to myself while I work on it.

Issue fork entity-3615092

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

klausi made their first commit to this issue’s fork.

  • klausi committed 52e67062 on 8.x-1.x authored by benstallings
    fix: #3615092 Add missing CacheableMetadata parameter and fix PHPStan...
klausi’s picture

Title: missing CacheableMetadata parameter » missing CacheableMetadata parameter adn PHPStan errors
Status: Needs review » Fixed

Thanks! I fixed all other PHPStan errors as well.

Merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.