public function __call($method, $args) { throw new \RuntimeException(sprintf('Invalid node encountered: %s', json_encode($args[0]))); }