This PR was merged into the 2.0-dev branch.
Discussion
----------
Remove the reserved macro names
Replaces #1765 and #1766
Commits
-------
23a7b6f Remove the reserved macro names
This PR was merged into the 1.x branch.
Discussion
----------
Optimize the retrieval of reserved macro names
The list of reserved names does not need to be reset for each template compilation.
Commits
-------
c267257 Optimize the retrieval of reserved macro names
This PR was merged into the 1.x branch.
Discussion
----------
Remove dead code
Array keys cannot be objects in PHP.
Commits
-------
a07ac6a Remove dead code
This PR was merged into the 1.x branch.
Discussion
----------
Remove broken code
https://github.com/twigphp/Twig/commit/651613c32c315bbeb330b2a6354b34c288e9ea0a#diff-841d1051670799376e88c87114d2caf0 broke the code of ``Twig_Node_Module::compileLoadTemplate`` when passing a non-constant node (it triggers a fatal error)
Trait templates can only be constant expression nodes, so fixing the broken is not actually needed and it can be removed.
Given it is a protected method, I haven't changed the signature to typehint the node as a Twig_Node_Expression_Constant
Commits
-------
e6ae0d0 Remove broken code
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes#1762).
Discussion
----------
[doc/recipes] Added OPcache support
OPcache enabled by default cache sinse PHP 5.5.
Commits
-------
1f3fb9a [doc/recipes] Added OPcache support
* 1.x:
bumped version to 1.20.1-DEV
prepared the 1.20.0 release
updated CHANGELOG
Fix the accessibility of Twig_Template::getEnvironment method in the C ext
Fix the handling of internal Twig_Template properties in the C ext
Forbid access to the Twig environment from template instance
fixed sandbox security issue
Prevent importing or calling reserved macro names
This PR was merged into the 1.x branch.
Discussion
----------
Some various changes
Commits
-------
e5b7c03 updated CHANGELOG
2250060 Fix the accessibility of Twig_Template::getEnvironment method in the C ext
e000420 Fix the handling of internal Twig_Template properties in the C ext
a8a125b Forbid access to the Twig environment from template instance
30be077 fixed sandbox security issue
7b6c0e9 Prevent importing or calling reserved macro names
This also fixes the logic detecting reserved macro names to account for
the fact that they are compiled prefixed with get() since a very long
time and the logic preventing conflicts was broken.
This PR was merged into the 1.x branch.
Discussion
----------
deprecated Twig_Template::getEnvironment()
Commits
-------
c9501b8 deprecated Twig_Template::getEnvironment()
* 1.x:
deprecated _self
added a base node visitor to make compat between 1.x and 2.x possible
bumped to 1.20
added a mention of projects using Twig
bumped version to 1.19.1-DEV
prepared the 1.19.0 release
updated CHANGELOG
Fixed error guessing in blocks in a child template
fixed CS
tweaked docs
fixed CS
bumped version to 1.19
Added support for unconsumed macro arguments
Added variadic filters, tests, and functions
This PR was merged into the 1.x branch.
Discussion
----------
deprecated _self
It never makes sense to use the `_self` variable in a template except for the special `from` and `import` usage. So, I propose to deprecate it in 2.x and remove the unexcepted possible usages in 3.0.
Commits
-------
5514c8e deprecated _self