This PR was merged into the 2.x branch.
Discussion
----------
Macros imported "globally" in a template are now available in macros without re-importing them
closes#1790, closes#1052, closes#2414, closes#2442
Commits
-------
e1381640 macros imported "globally" in a template are now available in macros without re-importing them
* 2.x:
fixed typo
fixed tests
fixed a PHP fatal error when calling a macro imported in the template in a nested block
fixed typo
added some tests
fixed a regression
This PR was merged into the 1.x branch.
Discussion
----------
Fix a PHP fatal error when calling a macro imported in the template in a nested block
Commits
-------
11353ce3 fixed a PHP fatal error when calling a macro imported in the template in a nested block
This PR was merged into the 1.x branch.
Discussion
----------
Tweak the error message when using extends in a block/macro
Commits
-------
70c1b3a2 tweaked the error message when using extends in a block/macro
This PR was merged into the 1.x branch.
Discussion
----------
Fix a PHP fatal error when calling a macro, imported in the template, in another macro
The current code iterates over all imported functions (traversing all the scopes). So, the macro was found at compilation time, but didn't work at runtime, leading to a PHP fatal error. Now, you get a proper exception at compilation time.
Commits
-------
ba9b9681 fixed a PHP fatal error when calling a macro, imported in the template, in another macro
* 2.x:
tweaked error messages
fixed wrong error message on "import" and "from"
bumped version to 2.10.1-DEV
prepared the 2.10.0 release
bumped version to 1.41.1-DEV
prepared the 1.41.0 release
Correct Twig_SimpleFilter/Twig_SimpleFunction/Twig_SimpleTest deprecation doc (Revert: moved to namespaced classes by default)
fixed PHP 7.4 support
This PR was merged into the 1.x branch.
Discussion
----------
Fix wrong error message on "import" and "from"
Commits
-------
118462c1 fixed wrong error message on "import" and "from"
* 1.x:
Correct Twig_SimpleFilter/Twig_SimpleFunction/Twig_SimpleTest deprecation doc (Revert: moved to namespaced classes by default)
fixed PHP 7.4 support
This PR was merged into the 1.x branch.
Discussion
----------
Correct Twig_SimpleFilter, Twig_SimpleFunction, Twig_SimpleTest deprecation doc
Reverts https://github.com/twigphp/Twig/commit/3632a46e82fbb391b0fc72674bd8946e0b7c5bf7 for deprecated.rst
Commits
-------
65047482 Correct Twig_SimpleFilter/Twig_SimpleFunction/Twig_SimpleTest deprecation doc (Revert: moved to namespaced classes by default)