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
#2454649: Cache Optimization and hardening -- [PP-1] Use assert() instead of exceptions in Cache::merge(Tags|Contexts) deprecated Cache::validateTags()
before deprecation testing was a thing and it never removed all the usages.
Proposed resolution
- Add @trigger_error
- Add assertion to test
Note there is no change record for this change. Given this was done on 8.0.x I think adding one now is only confusing.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#7 | 3068076-7.patch | 1.72 KB | alexpott |
#7 | 3-7-interdiff.txt | 2.01 KB | alexpott |
#3 | 3068076-3.patch | 1.63 KB | alexpott |
#3 | 2-3-interdiff.txt | 1.65 KB | alexpott |
#2 | 3068076-2.patch | 1.59 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottLet's add the namespace to the deprecation message.
Comment #4
BerdirLooks good.
Comment #5
Wim Leers👍
Comment #6
catchWe should include the namespace for Inspector here as well.
Comment #7
alexpottSure why not.
Comment #8
catchCommitted c6b60cd and pushed to 8.8.x. Thanks!
Comment #10
catch