function DefinedTest::changeIgnoreStrictCheck
1 call to DefinedTest::changeIgnoreStrictCheck()
- DefinedTest::__construct in vendor/
twig/ twig/ src/ Node/ Expression/ Test/ DefinedTest.php
File
-
vendor/
twig/ twig/ src/ Node/ Expression/ Test/ DefinedTest.php, line 78
Class
- DefinedTest
- Checks if a variable is defined in the current context.
Namespace
Twig\Node\Expression\TestCode
private function changeIgnoreStrictCheck(GetAttrExpression $node) {
$node->setAttribute('optimizable', false);
$node->setAttribute('ignore_strict_check', true);
if ($node->getNode('node') instanceof GetAttrExpression) {
$this->changeIgnoreStrictCheck($node->getNode('node'));
}
}