Fixed
Project:
Cache Tools!
Version:
8.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jul 2026 at 01:47 UTC
Updated:
17 Aug 2026 at 07:17 UTC
Jump to comment: Most recent
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.
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
abenbowComment #4
abenbowComment #5
abenbowComment #7
fagothank you, good fix, merged.