When using PHP 8.4, the following error gets displayed on a website using cache tools:

Deprecated: Drupal\cache_tools\Service\CacheInvalidator::getPublishedEntityFieldsCacheTags(): Implicitly marking parameter $entity_compare as nullable is deprecated, the explicit nullable type must be used instead in /code/web/modules/contrib/cache_tools/src/Service/CacheInvalidator.php on line 135 

This is directly related to this method signature: getPublishedEntityFieldsCacheTags , which reads

 public function getPublishedEntityFieldsCacheTags(FieldableEntityInterface $entity, FieldableEntityInterface $entity_compare = NULL) {

See https://www.php.net/manual/en/migration84.deprecated.php for more information.

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

abenbow created an issue. See original summary.

abenbow’s picture

Status: Active » Needs review
abenbow’s picture

Issue summary: View changes
abenbow’s picture

Issue summary: View changes

  • fago committed 1462277d on 8.x-1.x authored by abenbow
    fix: #3611525 PHP 8.4: Implicitly marking parameter $entity_compare as...
fago’s picture

Status: Needs review » Fixed

thank you, good fix, 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.