Lines Matching refs:SyntaxError

15 use Twig\Error\SyntaxError;  alias
213 …throw new SyntaxError(sprintf('Unexpected unary operator "%s".', $token->getValue()), $token->getL…
230 …throw new SyntaxError(sprintf('Unexpected operator of value "%s". Did you try to use "===" or "!==…
232 …throw new SyntaxError(sprintf('Unexpected token "%s" of value "%s".', Token::typeToEnglish($token-…
323 …throw new SyntaxError(sprintf('A hash key must be a quoted string, a number, a name, or an express…
362 …throw new SyntaxError('Calling "parent" outside a block is forbidden.', $line, $this->parser->getS…
366 …throw new SyntaxError('Calling "parent" on a template that does not extend nor "use" another templ…
373 …throw new SyntaxError('The "block" function takes one argument (the block name).', $line, $this->p…
380 …throw new SyntaxError('The "attribute" function takes at least two arguments (the variable and the…
429 … throw new SyntaxError('Expected name or number.', $lineno, $stream->getSourceContext());
434 …throw new SyntaxError(sprintf('Dynamic macro names are not supported (called on "%s").', $node->ge…
440 …throw new SyntaxError(sprintf('"%s" cannot be called as macro as it is a reserved keyword.', $name…
527 * @throws SyntaxError
550 …throw new SyntaxError(sprintf('A parameter name must be a string, "%s" given.', \get_class($value)…
558 …throw new SyntaxError(sprintf('A default value for an argument must be a constant (a boolean, a st…
592 …throw new SyntaxError(sprintf('You cannot assign a value to "%s".', $value), $token->getLine(), $s…
656 … $e = new SyntaxError(sprintf('Unknown "%s" test.', $name), $line, $stream->getSourceContext());
689 …$e = new SyntaxError(sprintf('Unknown "%s" function.', $name), $line, $this->parser->getStream()->…
719 …$e = new SyntaxError(sprintf('Unknown "%s" filter.', $name), $line, $this->parser->getStream()->ge…