Remove obsolete code

This commit is contained in:
Fabien Potencier
2024-10-08 18:45:35 +02:00
parent 025278f576
commit dce4ba85b0
3 changed files with 0 additions and 17 deletions
-4
View File
@@ -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.
-5
View File
@@ -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
~~~~~~~~~
-8
View File
@@ -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();