Closed (fixed)
Project:
Views Advanced Cache
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2025 at 01:52 UTC
Updated:
16 Jul 2025 at 02:34 UTC
Jump to comment: Most recent
Comments
Comment #2
elc commentedUpdate summary.
Needs a test to make sure it doesn't hit again.
Comment #3
elc commentedOops, fix issue title.
Comment #5
elc commentedThe test-only job fails as expected.
https://git.drupalcode.org/project/views_advanced_cache/-/jobs/5589448
This is a bug preventing the module from working when first added to a view. As such, merge and release immediately.
Comment #8
elc commentedCherry-picked to 8.x-1.x branch.
Comment #9
elc commentedFixing the return type hint is a more complete way to handle this. Upstream code does not have a return type but it does return a translated string. This means we should change the type hint to "string|\Stringable" so that both a plain string and a translated string can be returned.
Any string that has english words in it should be translated, which is done in this case, but the translated strings are concatenated prior to being returned.
Revert the cast, change the type hint.
Comment #12
elc commentedWill not be ported back to 8.x-1.x as it doesn't include the type hint. Keep that cast in that branch.