{
if (!array_key_exists($item, $context)) {
if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
- return null;
+ return;
}
throw new Twig_Error_Runtime(sprintf('Variable "%s" does not exist', $item), -1, $this->getTemplateName());
}
if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
- return null;
+ return;
}
if ($object instanceof ArrayAccess) {
}
if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
- return null;
+ return;
}
throw new Twig_Error_Runtime(sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object), -1, $this->getTemplateName());
}
if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
- return null;
+ return;
}
throw new Twig_Error_Runtime(sprintf('Method "%s" for object "%s" does not exist', $item, get_class($object)), -1, $this->getTemplateName());
$ret = call_user_func_array(array($object, $method), $arguments);
} catch (BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) {
- return null;
+ return;
}
throw $e;
}