-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: #4029 when use_yield is true CaptureNode use iterator_to_array p…
…reserveKeys argument to false
- Loading branch information
1 parent
7d2b814
commit f7121a2
Showing
4 changed files
with
19 additions
and
3 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
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-- | ||
#4029 When use_yield is true, CaptureNode fall in iterator_to_array pitfall regarding index overwrite | ||
--TEMPLATE-- | ||
{%- set tmp -%} | ||
{%- block foo 'foo' -%} | ||
{%- block bar 'bar' -%} | ||
{%- endset -%} | ||
{{ tmp }} | ||
--DATA-- | ||
return [] | ||
--CONFIG-- | ||
return ['use_yield' => true] | ||
--EXPECT-- | ||
foobar |
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
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