protected function Twig_Node_Expression_Test_Defined::changeIgnoreStrictCheck in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/Node/Expression/Test/Defined.php \Twig_Node_Expression_Test_Defined::changeIgnoreStrictCheck()
1 call to Twig_Node_Expression_Test_Defined::changeIgnoreStrictCheck()
- Twig_Node_Expression_Test_Defined::__construct in vendor/
Twig/ Node/ Expression/ Test/ Defined.php - Constructor.
File
- vendor/
Twig/ Node/ Expression/ Test/ Defined.php, line 41
Class
- Twig_Node_Expression_Test_Defined
- Checks if a variable is defined in the current context.
Code
protected function changeIgnoreStrictCheck(Twig_Node_Expression_GetAttr $node) {
$node
->setAttribute('ignore_strict_check', true);
if ($node
->getNode('node') instanceof Twig_Node_Expression_GetAttr) {
$this
->changeIgnoreStrictCheck($node
->getNode('node'));
}
}