private function checkContext($method, array $args) { if (count($args) > 0) { throw new InvalidArgumentException(sprintf('Calling method %s with arguments is unsupported.', $method)); } }