Home
last modified time | relevance | path

Searched refs:SyntaxError (Results 1 – 25 of 44) sorted by relevance

12

/template/twigstarter/vendor/twig/twig/src/Node/Expression/FunctionNode/
DEnumFunction.php15 use Twig\Error\SyntaxError; alias
41 …throw new SyntaxError('The first argument of the "enum" function must be a string.', $this->getTem…
45 …throw new SyntaxError(\sprintf('The first argument of the "enum" function must be the name of an e…
49 …throw new SyntaxError(\sprintf('The first argument of the "enum" function must be a non-empty enum…
DEnumCasesFunction.php15 use Twig\Error\SyntaxError; alias
41 …throw new SyntaxError('The first argument of the "enum_cases" function must be a string.', $this->…
45 …throw new SyntaxError(\sprintf('The first argument of the "enum_cases" function must be the name o…
/template/twigstarter/vendor/twig/twig/src/Util/
DCallableArgumentsExtractor.php14 use Twig\Error\SyntaxError; alias
50 …throw new SyntaxError(\sprintf('Positional arguments cannot be used after named arguments for %s "…
62 …throw new SyntaxError(\sprintf('Value for argument "%s" is required for %s "%s".', $argName, $this…
70 …throw new SyntaxError(\sprintf('Named arguments are not supported for %s "%s".', $this->twigCallab…
73 …throw new SyntaxError(\sprintf('Arbitrary positional arguments are not supported for %s "%s".', $t…
97 …throw new SyntaxError(\sprintf('Argument "%s" is defined twice for %s "%s".', $callableParameterNa…
101 throw new SyntaxError(\sprintf(
126 …throw new SyntaxError(\sprintf('Value for argument "%s" is required for %s "%s".', $this->toSnakeC…
162 throw new SyntaxError(
217 …throw new SyntaxError(\sprintf('The last parameter of "%s" for %s "%s" must be an array with defau…
DDeprecationCollector.php15 use Twig\Error\SyntaxError; alias
68 } catch (SyntaxError $e) {
/template/twigstarter/vendor/twig/twig/src/
DParser.php15 use Twig\Error\SyntaxError; alias
81 * @throws SyntaxError
115 } catch (SyntaxError $e) {
171 * @throws SyntaxError
196 …throw new SyntaxError('A block must start with a tag name.', $token->getLine(), $this->stream->get…
213 …$e = new SyntaxError(\sprintf('Unexpected "%s" tag', $token->getValue()), $token->getLine(), $this…
220 …$e = new SyntaxError(\sprintf('Unknown "%s" tag.', $token->getValue()), $token->getLine(), $this->…
240 …throw new SyntaxError('The lexer or the parser ended up in an unsupported state.', $this->getCurre…
293 …throw new SyntaxError(\sprintf("The block '%s' has already been defined line %d.", $name, $this->b…
430 …throw new SyntaxError('Multiple extends tags are forbidden.', $parent->getTemplateLine(), $parent-…
[all …]
DTokenStream.php15 use Twig\Error\SyntaxError; alias
56 …throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current - 1]->getLine(),…
80 throw new SyntaxError(\sprintf('%sUnexpected token "%s"%s ("%s" expected%s).',
100 …throw new SyntaxError('Unexpected end of template.', $this->tokens[$this->current + $number - 1]->…
DEnvironment.php21 use Twig\Error\SyntaxError; alias
328 * @throws SyntaxError When an error occurred during compilation
342 * @throws SyntaxError When an error occurred during compilation
357 * @throws SyntaxError When an error occurred during compilation
384 * @throws SyntaxError When an error occurred during compilation
443 * @throws SyntaxError When an error occurred during compilation
490 * @throws SyntaxError When an error occurred during compilation
528 * @throws SyntaxError When the code is syntactically wrong
550 * @throws SyntaxError When the token stream is syntactically or semantically wrong
584 * @throws SyntaxError When there was an error during tokenizing, parsing or compiling
[all …]
DExpressionParser.php15 use Twig\Error\SyntaxError; alias
209 * @throws SyntaxError
252 …throw new SyntaxError('Normal arguments must be placed before argument unpacking.', $stream->getCu…
261 …throw new SyntaxError(\sprintf('A parameter name must be a string, "%s" given.', $value::class), $…
269 …throw new SyntaxError('A default value for an argument must be a constant (a boolean, a string, a …
/template/twigstarter/vendor/twig/twig/src/TokenParser/
DExtendsTokenParser.php15 use Twig\Error\SyntaxError; alias
34 …throw new SyntaxError('Cannot use "extend" in a block.', $token->getLine(), $stream->getSourceCont…
36 …throw new SyntaxError('Cannot use "extend" in a macro.', $token->getLine(), $stream->getSourceCont…
DSetTokenParser.php14 use Twig\Error\SyntaxError; alias
47 …throw new SyntaxError('When using set, you must have the same number of variables and assignments.…
53 …throw new SyntaxError('When using set with a block, you cannot have a multi-target.', $stream->get…
DTokenParserInterface.php14 use Twig\Error\SyntaxError; alias
36 * @throws SyntaxError
DGuardTokenParser.php14 use Twig\Error\SyntaxError; alias
30 …throw new SyntaxError(\sprintf('Supported guard types are function, filter and test, "%s" given.',…
44 } catch (SyntaxError) {
DDeprecatedTokenParser.php14 use Twig\Error\SyntaxError; alias
52 …throw new SyntaxError(\sprintf('Unknown "%s" option.', $k), $stream->getCurrent()->getLine(), $str…
DAutoEscapeTokenParser.php14 use Twig\Error\SyntaxError; alias
37 …throw new SyntaxError('An escaping strategy must be a string or false.', $stream->getCurrent()->ge…
DUseTokenParser.php14 use Twig\Error\SyntaxError; alias
43 …throw new SyntaxError('The template references in a "use" statement must be a string.', $stream->g…
DSandboxTokenParser.php14 use Twig\Error\SyntaxError; alias
53 …throw new SyntaxError('Only "include" tags are allowed within a "sandbox" section.', $node->getTem…
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/
DPrefixExpressionParserInterface.php14 use Twig\Error\SyntaxError; alias
22 * @throws SyntaxError
DInfixExpressionParserInterface.php14 use Twig\Error\SyntaxError; alias
22 * @throws SyntaxError
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/Prefix/
DGroupingExpressionParser.php14 use Twig\Error\SyntaxError; alias
59 …throw new SyntaxError('A list of variables must be followed by an arrow.', $stream->getCurrent()->…
68 …throw new SyntaxError('A list must only contain variables.', $expr->getTemplateLine(), $expr->getS…
/template/twigstarter/vendor/twig/twig/src/Node/Expression/
DAssignNameExpression.php16 use Twig\Error\SyntaxError; alias
30 throw new SyntaxError(\sprintf('You cannot assign a value to "%s".', $name), $lineno);
DTempNameExpression.php15 use Twig\Error\SyntaxError; alias
25 throw new SyntaxError(\sprintf('You cannot assign a value to "%s".', $name), $lineno);
DArrowFunctionExpression.php15 use Twig\Error\SyntaxError; alias
34 …throw new SyntaxError('The arrow function argument must be a list of variables or a single variabl…
/template/twigstarter/vendor/twig/twig/src/ExpressionParser/Infix/
DArgumentsTrait.php14 use Twig\Error\SyntaxError; alias
58 …throw new SyntaxError('Normal arguments must be placed before argument unpacking.', $stream->getCu…
67 …throw new SyntaxError(\sprintf('A parameter name must be a string, "%s" given.', $value::class), $…
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Test/
DDefinedTest.php16 use Twig\Error\SyntaxError; alias
46 throw new SyntaxError('The "defined" test only works with simple variables.', $lineno);
/template/twigstarter/vendor/twig/twig/src/Node/Expression/Binary/
DMatchesBinary.php15 use Twig\Error\SyntaxError; alias
35 …set_error_handler(static fn ($t, $m) => throw new SyntaxError(\sprintf('Regexp "%s" passed to "mat…

12