mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 01:46:37 +00:00
Fix warning
This commit is contained in:
@@ -507,7 +507,7 @@ final class ExtensionSet
|
||||
default => throw new \InvalidArgumentException(\sprintf('Invalid associativity "%s" for operator "%s".', $op['associativity'], $operator)),
|
||||
};
|
||||
|
||||
if ($op['callable']) {
|
||||
if (isset($op['callable'])) {
|
||||
$expressionParsers[] = $this->convertInfixExpressionParser($op['class'], $operator, $op['precedence'], $op['associativity'], $op['precedence_change'] ?? null, $op['aliases'] ?? [], $op['callable']);
|
||||
} else {
|
||||
$expressionParsers[] = new BinaryOperatorExpressionParser($op['class'], $operator, $op['precedence'], $op['associativity'], $op['precedence_change'] ?? null, '', $op['aliases'] ?? []);
|
||||
|
||||
Reference in New Issue
Block a user