mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-24 04:35:52 +00:00
Remove obsolete code
This commit is contained in:
@@ -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