* 1.x:
updated CHANGELOG
Deprecate usage of undefined blocks
deprecated support for mbstring.func_overload != 0
bumped version to 1.28.3-DEV
prepared the 1.28.2 release
This PR was merged into the 1.x branch.
Discussion
----------
Deprecate usage of undefined blocks
Alternative to #2277.
Commits
-------
75d474a Deprecate usage of undefined blocks
This PR was merged into the 1.x branch.
Discussion
----------
Deprecate support for mbstring.func_overload != 0
see https://wiki.php.net/rfc/deprecations_php_7_2
Commits
-------
6668d47 deprecated support for mbstring.func_overload != 0
This PR was squashed before being merged into the 1.x branch (closes#2272).
Discussion
----------
Fix unconsistent behavior with "get" and "is"
Commits
-------
8fb35d5 Fix unconsistent behavior with "get" and "is"
* 1.x:
fixed message
improved a deprecation notice
bumped version to 1.28.2-DEV
prepared the 1.28.1 release
added tests for block() when using a template argument
fixed block() is defined call when using a template argument
Bugfix: When rendering blocks of other templates, don't pass the local blocks array.
fixed doc issues
fixed typo in the docs
fix wrong __CLASS__ constant
bumped version to 1.28.1-DEV
prepared the 1.28.0 release
fixed render block with template wrapper
This PR was merged into the 1.x branch.
Discussion
----------
Bugfix: When rendering blocks of other templates, don't pass the local blocks array
This PR fixessymfony/symfony#20556.
When referring to a block of another template from within a template that also has a block with the same name, Twig renders the wrong block.
Commits
-------
8c090a7 added tests for block() when using a template argument
a5526f3 fixed block() is defined call when using a template argument
c04d077 Bugfix: When rendering blocks of other templates, don't pass the local blocks array.
This PR was merged into the 1.x branch.
Discussion
----------
fixed render block with template wrapper
Commits
-------
159bfec fixed render block with template wrapper
This PR was submitted for the master branch but it was merged into the 2.x branch instead (closes#2254).
Discussion
----------
Clean ups
Commits
-------
1f6fd67 Clean ups
This PR was merged into the 1.x branch.
Discussion
----------
Add support for PHP 7 null coalescing operator
This is just one case where we can "optimize" the ternary operator. PHP 7 also supports more complex expressions that can return `null`. The rule here seems to be that you cannot have more than one level of undefinedness.
So, for instance, if `log` is defined, `log("foo") ?? "NOPE"` works, but `log($a["foo"]) ?? "NOPE"` does not if `$a["foo"]` is not defined. If we want to convert the code to always use `??` when possible, this should probably be implemented in the Optimizer node visitor, not here. But the question is: is it worth it in terms of performance? It cleans up the generated code quite a bit though.
closes#1979
Commits
-------
cfc3931 added support for PHP 7 null coalescing operator
This PR was submitted for the master branch but it was merged into the 2.x branch instead (closes#2253).
Discussion
----------
Use ** operator over function pow()
With Twig PHP dep. raised to 5.6 the arithmetic operator [`**`](http://php.net/manual/en/language.operators.arithmetic.php) can be used.
Besides slightly faster it is also harder to override an operator than it is the `pow()` function.
Commits
-------
97f8159 Use ** operator over function pow()