mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-19 13:57:00 +00:00
Remove obsolete code
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
``guard``
|
||||
=========
|
||||
|
||||
.. versionadded:: 3.13
|
||||
|
||||
The ``guard`` tag was added in Twig 3.15.
|
||||
|
||||
The ``guard`` statement checks if some Twig callables are available at
|
||||
**compilation time** to bypass code compilation that would otherwise fail.
|
||||
|
||||
|
||||
@@ -967,11 +967,6 @@ The following operators don't fit into any of the other categories:
|
||||
|
||||
{{ people|map(first_name_fn)|join(', ') }}
|
||||
|
||||
.. versionadded:: 3.15
|
||||
|
||||
Arrow function support for functions, macros, and method calls was added in
|
||||
Twig 3.15 (filters and tests were already supported).
|
||||
|
||||
Operators
|
||||
~~~~~~~~~
|
||||
|
||||
|
||||
@@ -87,10 +87,6 @@ class ExpressionParser
|
||||
|
||||
public function parseExpression($precedence = 0)
|
||||
{
|
||||
if (func_num_args() > 1) {
|
||||
trigger_deprecation('twig/twig', '3.15', 'Passing a second argument ($allowArrow) to "%s()" is deprecated.', __METHOD__);
|
||||
}
|
||||
|
||||
if ($arrow = $this->parseArrow()) {
|
||||
return $arrow;
|
||||
}
|
||||
@@ -664,10 +660,6 @@ class ExpressionParser
|
||||
*/
|
||||
public function parseArguments($namedArguments = false, $definition = false)
|
||||
{
|
||||
if (func_num_args() > 2) {
|
||||
trigger_deprecation('twig/twig', '3.15', 'Passing a third argument ($allowArrow) to "%s()" is deprecated.', __METHOD__);
|
||||
}
|
||||
|
||||
$args = [];
|
||||
$stream = $this->parser->getStream();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user