Add throw tag to parse methods

This commit is contained in:
Vincent Langlet
2025-10-18 12:28:49 +02:00
parent f0cd0fdb9f
commit 790eee7ae0
3 changed files with 14 additions and 0 deletions
@@ -11,12 +11,16 @@
namespace Twig\ExpressionParser;
use Twig\Error\SyntaxError;
use Twig\Node\Expression\AbstractExpression;
use Twig\Parser;
use Twig\Token;
interface InfixExpressionParserInterface extends ExpressionParserInterface
{
/**
* @throws SyntaxError
*/
public function parse(Parser $parser, AbstractExpression $left, Token $token): AbstractExpression;
public function getAssociativity(): InfixAssociativity;