Problem/Motivation

varbase.install on the 10.1.x branch calls CacheBackendInterface::invalidateAll() on cache.menu and cache.render. That method is deprecated in drupal:11.2.0 and removed from drupal:12.0.0, so the install code breaks on Drupal 12. Found by a phpstan deprecation scan against Drupal 11.5.0-beta1. The 11.0.x branch no longer has these calls.

Proposed resolution

On the 10.1.x branch:

  • Use deleteAll() instead of invalidateAll() for cache.menu and cache.render in varbase.install.

Remaining tasks

  • [x] File an issue about this project
  • [ ] Addition/Change/Update/Fix to this project
  • [ ] Testing to ensure no regression
  • [ ] Automated unit/functional testing coverage
  • [ ] Developer Documentation support on feature change/addition
  • [ ] User Guide Documentation support on feature change/addition
  • [ ] UX/UI designer responsibilities
  • [ ] Accessibility and Readability
  • [ ] Reviewed by a human
  • [ ] Code review by maintainers
  • [ ] Full testing and approval
  • [ ] Credit contributors
  • [ ] Review with the product owner
  • [ ] Update Release Notes
  • [ ] Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Replace a Drupal 12 deprecation in the install code.

AI-Generated: Yes

Issue fork varbase-3642283

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

rajab natshah created an issue.