mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
82bc07bc64
* 3.x: Reduce memory usage of the context restoration compiled at the end of for loops Clarify sandbox always-allowed trust boundary Bump version to 3.28.0 for the always_allowed_in_sandbox feature Add regression tests that always-allowed callables still enforce the sandbox __toString policy on arguments Document the criteria for always-allowed sandbox items and list 4.0 built-ins Add an always_allowed_in_sandbox flag for filters, functions, and tags Remove issue references in tests Avoid allocating a normalized copy when counting newlines without carriage returns Report columns in syntax errors Track the source offset of each token # Conflicts: # CHANGELOG # doc/deprecated.rst # doc/sandbox.rst # src/Environment.php # src/Error/Error.php # src/Lexer.php # src/Node/ForNode.php # src/Token.php # src/TwigCallableInterface.php # tests/Extension/SandboxTest.php # tests/Node/ForTest.php
19 lines
382 B
Plaintext
19 lines
382 B
Plaintext
--TEST--
|
|
Call to undefined method Twig\TemplateWrapper::yieldBlock()
|
|
--TEMPLATE--
|
|
{% extends 'parent' %}
|
|
{%- block content -%}
|
|
{{ parent() }}
|
|
child
|
|
{%- endblock -%}
|
|
--TEMPLATE(parent)--
|
|
{% extends ['unknowngrandparent', 'grandparent'] %}
|
|
--TEMPLATE(grandparent)--
|
|
{%- block content -%}
|
|
grandparent
|
|
{%- endblock -%}
|
|
--DATA--
|
|
return []
|
|
--EXPECT--
|
|
grandparent
|
|
child |