ErrLookup › twigphp/Twig

twigphp/Twig

Twig, the flexible, fast, and secure template language for PHP · PHP · 355 source files

Analyzed at a414c3a491 on 2026-09-13. 193 documented errors.

Code / MessageTypeSeverityTags
Impossible to access an attribute/key on a variable…
exception error twig, strict-variables, null, attribute-access
Argument " " is defined twice for macro " ".
exception error twig, macro, duplicate, compile-time
The callable passed to the
exception error twig, sandbox, closure, security
Block " " should not call parent() in " " as the block does…
exception error twig, template-inheritance, block, runtime-error
The last parameter of
exception error php, twig, reflection, compile-time, variadic
Regexp " " passed to "matches" failed: .
exception error regex, twig, pcre, runtime-error
When using set, you must have the same number of variables…
exception error twig, set, syntax-error, template
The type " " does not exist, known types are: " ".
exception error intl, enum, number-format
%s: %s
exception error twig, testing, phpunit, test-harness
Callback for " " is not callable in the current scope.
exception error php, twig, callable, reflection, visibility
You cannot use the Twig function "constant" to access
exception error php, twig, constant, class
SpanishInflector is not available.
exception error php, twig, dependency, inflector
" " is an empty enum.
exception error php, enum, twig, runtime
The "find" filter expects a sequence or a mapping, got
exception error twig, filter, type-mismatch, runtime-error
You cannot enable the "use_yield" option of Twig as node
exception error twig, php, configuration, template-engine
Positional arguments cannot be used after named arguments…
exception error twig, macro, arguments, template
Argument " " is defined twice for " ".
exception error twig, template-compilation, syntax-error, duplicate-argument
You cannot use the "markdown_to_html" filter as no Markdown…
exception error php, composer, markdown, missing-package, dependency-injection
Argument " " could not be assigned for " ( )" because it is…
exception error twig, named-arguments, php-internals, reflection-limitation
The tag of a node can only be set once.
exception error twig, parser, node-visitor, logic-exception
Calling the "parent" function outside of a block is…
exception error twig, template-inheritance, syntax-error, compile-time
Positional arguments cannot be used after named arguments…
exception error twig, syntax-error, arguments, compile-time
Test " " is not valid.
exception error twig, php, testing, fixtures, parsing
The " " extension is not enabled.
exception error twig, extension, registration, resource-not-found
Unclosed " ".
exception error twig, lexer, syntax-error, unclosed-bracket
A documentation target can only be set while parsing a tag.
exception error twig, php, parser, api-misuse
The "deprecation_info" option must be an instance of
exception error php, twig, configuration, logic-exception
Cannot pop state without a previous state.
exception error php, twig, lexer, state-machine, internal
Optimizer mode " " is not valid.
exception error twig, optimizer, bitmask, invalid-argument
Attribute " " does not exist for Node " ".
exception error twig, node, attribute-access, logic-exception
Named arguments are not supported for
exception error twig, template, arguments
Regexp " " passed to "matches" is not valid: .
exception error twig, regex, pcre, template-compilation
Left side must be ArrayExpression for object/mapping…
exception error php, twig, ast, destructuring, parser
Token of type " " does not exist.
exception error twig, php, lexer, invalid-value, internal
Unexpected end of template. Twig was looking for the…
exception error twig, if, syntax-error, unclosed-tag
Value for argument " " is required for " ".
exception error twig, missing-argument, compile-time, syntax-error
Unknown argument " " for " ( )".
exception error twig, unknown-argument, compile-time, syntax-error
Impossible to invoke a method on a variable (dynamic…
exception error twig, runtime-error, method-call, array
The "batch" filter expects a sequence or a mapping, got
exception error twig, filter, type-mismatch, iterable
Calling the "parent" function on a template that does not…
exception error twig, template-inheritance, syntax-error, compile-time
An escaping strategy must be a string or false.
exception error twig, autoescape, syntax-error, escaping
Block " " on template " " does not exist.
exception error php, twig, template, block
" ::getOperators()" must return an array of 2 elements, got…
exception error php, twig, extensions, type-validation
The environment passed to
exception error twig, php, security, sandbox, configuration
The "html_classes" function argument
exception error twig, type-error, template
A template that extends another one cannot include content…
exception error twig, template-inheritance, syntax-error, compile-time
Node " " does not exist for Node " ".
exception error twig, node, child-node, logic-exception
The " " filter is part of the , which is not…
exception error php, twig, filter, missing-extension
Invalid associativity
exception error php, twig, extension, configuration, operator-precedence
Unable to register extension
exception error twig, extension, initialization-order, lifecycle
When setting the "deprecation_info" option, you need to…
exception error php, twig, configuration, deprecation
Constant " " is undefined.
exception error php, twig, constant, undefined
InlineStyle can only be created from iterable values.
exception error twig, html-extra, inline-style, type-error
Unknown " " configuration.
exception error twig, template-syntax, cache-extension, compile-time
Unknown " " option.
exception error twig, deprecated, syntax-error, token-parser
Failed to load Twig template
exception error twig, template-cache, runtime-error
Not implemented.
exception error twig, php, testing, deprecated-api, phpunit
The "name" attribute must be a string.
exception error php, twig, ast, assignment, parser
Block chain templates must be strings or
exception error php, twig, type-error, argument-validation
The "replace" filter expects a sequence or a mapping, got
exception error twig, filter, type-error, replace
getTokenParsers() must return an array of…
exception error php, twig, extensions, type-validation
The lexer or the parser ended up in an unsupported state.
exception error twig, parser, internal-state, lexer
A block must be a method on a \Twig\Template instance.
exception error twig, php, type-mismatch, security, template-engine
Template " " does not exist.
exception error twig, loader, template-not-found, database
The "html_classes" function argument
exception error twig, html-extra, html-classes, argument-validation
An exception has been thrown during the compilation of a…
exception error twig, compilation, syntax-error
The "map" filter expects a sequence or a mapping, got
exception error twig, filter, type-mismatch, runtime-error
Operators with more than 2 operands are not supported yet…
exception error twig, optimizer, safe-analysis, operator, logic-exception
" ::getOperators()" must return an array with operators…
exception error php, twig, extensions, type-validation
You cannot assign a value to
exception error twig, syntax-error, template-compilation, reserved-keyword
Named arguments are not supported for
exception error twig, named-arguments, compile-time, syntax-error
Regexp " " passed to "matches" is not valid
exception error twig, regex, pcre, matches
The arrow function argument must be a list of variables or…
exception error template, syntax, arrow-function, compile-time
The "output_strategy" argument of the "render_sandboxed"…
exception error twig, compile-time, sandbox, template
Unable to add a node visitor as extensions have already…
exception error twig, extension, node-visitor, initialization-order
Circular template inheritance detected while building a…
exception error twig, template-inheritance, infinite-loop, logic-error
Looks like you try to load a template outside configured…
exception error template, loader, security, path-traversal
A "block" tag cannot be under a
exception error twig, template-inheritance, blocks, syntax-error
Value for argument "output_strategy" is required for…
exception error twig, sandbox, required-argument, compile-time
The "format_list" filter requires the "IntlListFormatter"…
exception error php, intl, twig, missing-dependency
The " " function is part of the , which is not…
exception error php, twig, function, missing-extension
Expected endblock for block
exception error twig, block, syntax-error, template-parsing
Test " " is not allowed.
exception error twig, sandbox, security-policy, tests
Empty array elements are only allowed in destructuring…
exception error template, syntax, compile-time, array
The "has every" test expects a sequence or a mapping, got
exception error twig, test, type-mismatch, runtime-error
Template " " is not defined .
exception error twig, loader, chain-loader, template-not-found
The "reduce" filter expects a sequence or a mapping, got
exception error twig, filter, type-mismatch, runtime-error
Unable to convert encoding: required function iconv() does…
exception critical php, missing-extension, iconv, environment, twig
" " is not an enum.
exception error twig, enum, class-not-found, argument-validation
Template " " is not defined.
exception error twig, filesystem, template-not-found
The " " tag is part of the , which is not…
exception error php, twig, tag, missing-extension
The template has no parent and no traits defining the
exception error twig, template-inheritance, parent, runtime-error
Cannot assign to " ", only variables can be assigned in…
exception error twig, destructuring, syntax-error, template-compilation
The " " attribute value should be a scalar, an iterable, or…
exception error twig, type-error, html-attr
Template " " cannot be used as a trait.
exception error twig, template-inheritance, trait, runtime
EmptyNode cannot have children.
exception error php, twig, ast, node-visitor, internal
The first argument of the "enum" function must be a…
exception error twig, enum, empty-enum, compile-time
You cannot use the "html_to_markdown" filter as…
exception error php, composer, markdown, missing-package, twig-filter
Arbitrary positional arguments are not supported for
exception error twig, positional-arguments, compile-time, syntax-error
SeparatedTokenList can only be merged with iterables or…
exception error twig, html-extra, separated-token-list, merge, separator