This PR was squashed before being merged into the 3.x branch (closes#2968).
Discussion
----------
Various removals
Each commit is a "simple" removal of an obsolete feature.
Commits
-------
802646aa removed Template::__toString()
02767df5 removed block definition nested in non-capturing nodes
2fa26d6f removed Parser::isReservedMacroName()
12972d00 removed obsolete OPTIMIZE_VAR_ACCESS const
5b1aad86 removed remaining code supporting PSR-0 class names
7fb5fb44 simplified code
85fc1eff removed the possibility to pass a Template to Environment::load()
This PR was merged into the 3.x branch.
Discussion
----------
Remove the "base_template_class" option on Twig\Environment
Commits
-------
86eb15de removed the "base_template_class" option on Twig\Environment
This PR was merged into the 3.x branch.
Discussion
----------
Change Environment::resolveTemplate() to always return a TemplateWrapper
Commits
-------
e1e9d011 changed Environment::resolveTemplate() to always return a TemplateWrapper
This PR was merged into the 3.x branch.
Discussion
----------
Change classes marked as @final to final
Commits
-------
e8a21cfe changed classes marked as @final to final
This PR was merged into the 1.x branch.
Discussion
----------
Fix Parser contract for some implementations
Commits
-------
fe6df56e fixed Parser contract for some implementations
This PR was merged into the 1.x branch.
Discussion
----------
Tweak macro docs
closes#2344
Error message were improved a while ago, and this PR makes the documentation clearer about the expectations.
Commits
-------
7446a6d8 tweaked macro docs
This PR was merged into the 1.x branch.
Discussion
----------
Fix in test to support Twig_Markup instances
closes#1512 (extracted from #1768)
Commits
-------
8f00576e fixed in test to support Twig_Markup instances
This PR was merged into the 1.x branch.
Discussion
----------
Fix import macros from a template string
closes#2946
Commits
-------
f0c58854 fixed import macros from a template string
This PR was merged into the 1.x branch.
Discussion
----------
Add a note about escaping
closes#2623, closes#2661
Commits
-------
a83f7e85 added a note about escaping
This PR was merged into the 1.x branch.
Discussion
----------
Fix Lexer when using custom options containing the # char
closes#2948
Commits
-------
7b5851fe fixed Lexer when using custom options containing the # char