-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #4336 Fix template name in error for an unknown dynamic extends c…
…alled from an include (fabpot) This PR was merged into the 3.x branch. Discussion ---------- Fix template name in error for an unknown dynamic extends called from an include Closes #3265 The code was introduced in #1529, but removing it nowadays does not break any existing test. Review ignoring whitespace. Commits ------- 4824f2a Fix template name in error for an unknown dynamic extends called from an include
- Loading branch information
Showing
2 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/Fixtures/tags/inheritance/dynamic_parent_from_include.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--TEST-- | ||
"extends" tag | ||
--TEMPLATE-- | ||
{{ include('included.twig') }} | ||
|
||
--TEMPLATE(included.twig)-- | ||
|
||
|
||
|
||
{% extends dynamic %} | ||
--DATA-- | ||
return ['dynamic' => 'unknown.twig'] | ||
--EXCEPTION-- | ||
Twig\Error\LoaderError: Template "unknown.twig" is not defined in "included.twig" at line 5. |