mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-11 22:35:46 +00:00
Add getOperatorTokens() to ExpressionParserInterface to separate operator token registration from parser identity
This commit is contained in:
@@ -27,4 +27,9 @@ abstract class AbstractExpressionParser implements ExpressionParserInterface
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public function getOperatorTokens(): array
|
||||
{
|
||||
return [$this->getName(), ...$this->getAliases()];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user