mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Merge branch '1.x' into 2.x
* 1.x: added some tests bumped version to 1.42.1-DEV prepared the 1.42.0 release Use v5.0 of the phpunit bridge
This commit is contained in:
@@ -243,7 +243,11 @@
|
||||
* improved the performance of the filesystem loader
|
||||
* removed features that were deprecated in 1.x
|
||||
|
||||
* 1.42.0 (2019-XX-XX)
|
||||
* 1.42.1 (2019-XX-XX)
|
||||
|
||||
* n/a
|
||||
|
||||
* 1.42.0 (2019-05-31)
|
||||
|
||||
* fixed the "filter" filter when the argument is \Traversable but does not implement \Iterator (\SimpleXmlElement for instance)
|
||||
* fixed a PHP fatal error when calling a macro imported in a block in a nested block
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
"symfony/polyfill-ctype": "^1.8"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "^3.4.19|^4.1.8",
|
||||
"symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5.0",
|
||||
"symfony/debug": "^2.7",
|
||||
"psr/container": "^1.0"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
--TEST--
|
||||
macro
|
||||
--TEMPLATE--
|
||||
{% extends "parent" %}
|
||||
{% import _self as me %}
|
||||
|
||||
{% block test %}
|
||||
{{ me.testMacro() }}
|
||||
{% endblock test %}
|
||||
--TEMPLATE(parent)--
|
||||
{% import _self as me %}
|
||||
|
||||
{% block test %}
|
||||
Hello
|
||||
{% endblock test %}
|
||||
|
||||
{% macro testMacro() %}
|
||||
Test
|
||||
{% endmacro %}
|
||||
--DATA--
|
||||
return []
|
||||
--EXPECT--
|
||||
Test
|
||||
Reference in New Issue
Block a user