Skip to content

Commit e14a247

Browse files
Fix warning
1 parent 00d29e6 commit e14a247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExtensionSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ private function initExtension(ExtensionInterface $extension): void
507507
default => throw new \InvalidArgumentException(\sprintf('Invalid associativity "%s" for operator "%s".', $op['associativity'], $operator)),
508508
};
509509

510-
if ($op['callable']) {
510+
if (isset($op['callable'])) {
511511
$expressionParsers[] = $this->convertInfixExpressionParser($op['class'], $operator, $op['precedence'], $op['associativity'], $op['precedence_change'] ?? null, $op['aliases'] ?? [], $op['callable']);
512512
} else {
513513
$expressionParsers[] = new BinaryOperatorExpressionParser($op['class'], $operator, $op['precedence'], $op['associativity'], $op['precedence_change'] ?? null, '', $op['aliases'] ?? []);

0 commit comments

Comments
 (0)