{{ foo is defined ? 'ok' : 'ko' }}
{{ bar is defined ? 'ok' : 'ko' }}
{{ foobar is not defined ? 'ok' : 'ko' }}
+{{ nested.foo is defined ? 'ok' : 'ko' }}
+{{ nested.bar is not defined ? 'ok' : 'ko' }}
--DATA--
-return array('foo' => 'bar', 'bar' => null);
+return array('foo' => 'bar', 'bar' => null, 'nested' => array('foo' => 'foo'));
--EXPECT--
ok
ok
-ok
\ No newline at end of file
+ok
+ok
+ok
{
}
- public function getAttribute($object, $item, array $arguments = array(), $type = Twig_Node_Expression_GetAttr::TYPE_ANY)
+ public function getAttribute($object, $item, array $arguments = array(), $type = Twig_Node_Expression_GetAttr::TYPE_ANY, $noStrictCheck = false)
{
return parent::getAttribute($object, $item, $arguments, $type);
}