Fixed
Project:
Metatag
Version:
2.2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2026 at 19:19 UTC
Updated:
31 Oct 2026 at 10:08 UTC
Jump to comment: Most recent
One of the phpstan test failures:
Line metatag_views/src/MetatagViewsCachePluginManager.php
------ -----------------------------------------------------------------------
15 Trait Drupal\Core\Plugin\PreWarmablePluginManagerTrait requires using
class to implement Drupal\Core\PreWarm\PreWarmableInterface, but
Drupal\metatag_views\MetatagViewsCachePluginManager does not.
🪪 class.missingImplements
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 #4
shubhamgoel commentedHi team,
The fixes have been applied. Please review and merge the MR https://git.drupalcode.org/project/metatag/-/merge_requests/297/diffs
Comment #5
damienmckennaI think the correct approach would be to add PreWarmableInterface to the class, rather than removing the trait?
Comment #6
shubhamgoel commentedThanks @damienmckenna for the feedback.
Yes, You are correct. We must add
PreWarmableInterfaceto the class instead of removing the trait. I have updated the MR.Comment #7
csakiistvanComment #8
csakiistvan✅ Tested and works — PHPStan on
metatag_views/src/MetatagViewsCachePluginManager.phpwith the module'sphpstan.neonreported theclass.missingImplementserror on line 15; after rebasing MR !297 onto 2.2.x and rerunning, it reports no errors. AddingPreWarmableInterfaceresolves the PHPStan failure.Comment #11
damienmckennaComment #13
damienmckennaCommitted. Thank you.