Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 18, 2024
1 parent 9ce10b3 commit 2605250
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Node/Expression/CallExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ protected function compileCallable(Compiler $compiler)
$this->compileArguments($compiler);
}

protected function compileArguments(Compiler $compiler, $isArray = false): void
protected function compileArguments(Compiler $compiler): void
{
if (func_num_args() >= 2) {
trigger_deprecation('twig/twig', '3.11', 'Passing a second argument to "%s()" is deprecated.', __METHOD__);
}

$compiler->raw($isArray ? '[' : '(');
$compiler->raw('(');

$first = true;

Expand Down Expand Up @@ -116,7 +112,7 @@ protected function compileArguments(Compiler $compiler, $isArray = false): void
}
}

$compiler->raw($isArray ? ']' : ')');
$compiler->raw(')');
}

protected function getArguments($callable, $arguments)
Expand Down

0 comments on commit 2605250

Please sign in to comment.