Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem / Motivation
The assertCacheTag and assertNoCacheTag Rector rules replace with responseHeaderContains and responseHeaderNotContains respectively. However they do not prepend the arguments with the proper header name! This means the method call is invalid. We need to make sure the first parameter is the header name 'X-Drupal-Cache-Tags'
Comments
Comment #2
mglamanPR here: https://github.com/palantirnet/drupal-rector/pull/180
Comment #3
agentrickardCommitted.