[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/twig/twig/src/Node/ -> CheckToStringNode.php (summary)

(no description)

File Size: 42 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CheckToStringNode:: (2 methods):
  __construct()
  compile()


Class: CheckToStringNode  - X-Ref

Checks if casting an expression to __toString() is allowed by the sandbox.

For instance, when there is a simple Print statement, like {{ article }},
and if the sandbox is enabled, we need to check that the __toString()
method is allowed if 'article' is an object. The same goes for {{ article|upper }}
or {{ random(article) }}

__construct(AbstractExpression $expr)   X-Ref
No description

compile(Compiler $compiler)   X-Ref
No description



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1