private function shouldProxiedMethodReturn(\ReflectionMethod $method) { if (!method_exists($method, 'hasReturnType') || !$method->hasReturnType()) { return true; } return 'void' !== strtolower($this->formatType($method->getReturnType(), $method)); }