Missing use declaration for RefinableCacheableDependencyInterface and CacheableMetadata

Created on 25 September 2023, 9 months ago

I noticed when upgrading to D10.1 that I was getting this error:

PHP message: Uncaught PHP Exception TypeError: "node_menu_local_tasks_alter(): Argument #3 ($cacheability) must be of type RefinableCacheableDependencyInterface, Drupal\Core\Cache\CacheableMetadata given, called in /var/www/html/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php

I Identified that it was due to a missing use declaration of both the RefinableCacheableDependencyInterface and the CacheableMetadata classes.

πŸ› Bug report
Status

Closed: works as designed

Version

10.1 ✨

Component
Node systemΒ  β†’

Last updated about 1 hour ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom samberry

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024