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
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
Comment #3
benstallings commentedComment #6
klausiThanks! I fixed all other PHPStan errors as well.
Merged.