diff --git a/doc/tags/guard.rst b/doc/tags/guard.rst index 8c9ef7cfe..e2210e921 100644 --- a/doc/tags/guard.rst +++ b/doc/tags/guard.rst @@ -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. diff --git a/doc/templates.rst b/doc/templates.rst index 80e8f6794..a1f3363f7 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -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 ~~~~~~~~~ diff --git a/src/ExpressionParser.php b/src/ExpressionParser.php index 41e2d6713..e9c5fd3e8 100644 --- a/src/ExpressionParser.php +++ b/src/ExpressionParser.php @@ -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();