Problem/Motivation
Twig return type on resolveTemplate keeps changing, in 1.38.4, it now returns Template by default instead of Template wrapper causing tests to fail.
Proposed resolution
No core code seems to use ->resolveTemplate() except for the three instances noted in the patch. Therefore, it should be safe to change the tests over to use->load
Remaining tasks
commit it
User interface changes
none
API changes
none
Data model changes
none
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3042848-2.drupal.use-load-instead-of-resolveTemplate-in-Twig-Resolver-tests.patch | 1.87 KB | mikelutz |
Comments
Comment #2
mikelutzComment #3
catchNice one.
Comment #4
mikelutzI just double checked and confirmed we don't use ->resolveTemplate anywhere else in core, so it should be safe to change the tests to ->load
Comment #5
catchCommitted and pushed b0a741c568 to 8.8.x and eef22b0158 to 8.7.x. Thanks!