You are here

protected function Twig_Node_Expression_Test_Defined::changeIgnoreStrictCheck in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/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/twig/lib/Twig/Node/Expression/Test/Defined.php
Constructor.

File

vendor/twig/twig/lib/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'));
  }
}