Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
theme system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2021 at 14:11 UTC
Updated:
14 Oct 2021 at 01:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottHere's the fix from the meta.
Comment #3
alexpottNote this does not need to be fixed upstream because we override
\Twig\Loader\FilesystemLoader::__construct()with the result that\Twig\Loader\FilesystemLoader::$rootPathis NULL.\Twig\Loader\FilesystemLoader::$rootPathis a private so we can't set it to an empty string.Comment #4
longwaveI guess this is copied from upstream and fixed for our coding standards, but the rest of this class is all Drupal code - we don't use yoda conditions elsewhere, so should we refactor this to be more Drupally?
Comment #5
alexpottGood point. I think all of that can more elegantly be written like this...
Comment #6
longwaveMuch cleaner!
Comment #7
larowlanCommitted f8f2752 and pushed to 9.3.x. Thanks!