diff --git a/src/Framework/MockObject/MockMethod.php b/src/Framework/MockObject/MockMethod.php index 2388d157cc2..69e50b2fb73 100644 --- a/src/Framework/MockObject/MockMethod.php +++ b/src/Framework/MockObject/MockMethod.php @@ -346,7 +346,7 @@ private static function deriveReturnType(ReflectionMethod $method): Type $returnType = $method->getReturnType(); if ($returnType === null) { - return new UnknownType(); + return new UnknownType; } // @see https://bugs.php.net/bug.php?id=70722