return;
} throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()"/"has%1$s()" or "__call()" exist and have public access in class "%2$s".',
$item,
$class),
$lineno,
$source);
} if ($isDefinedTest) { return true;
} if ($sandboxed) { $env->
getExtension(SandboxExtension::
class)->
checkMethodAllowed($object,
$method,
$lineno,
$source);
} // Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try { $ret =
$object->
$method(...
$arguments);
} catch (\BadMethodCallException
$e) { if ($call && ($ignoreStrictCheck || !
$env->
isStrictVariables())) { return;
} throw $e;
}