From b84b39795050fe97aa53c59a6a5d32e689d9f465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 21 Apr 2020 23:15:41 +0200 Subject: [PATCH] Fix wrong phpdoc From what I can see in the InvocationMocker, the implementation makes a call that uses an object of type AnyParameters, but returns the current instance, not that object. --- src/Framework/MockObject/Builder/ParametersMatch.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Framework/MockObject/Builder/ParametersMatch.php b/src/Framework/MockObject/Builder/ParametersMatch.php index 698c7c54a66..ae16d79882a 100644 --- a/src/Framework/MockObject/Builder/ParametersMatch.php +++ b/src/Framework/MockObject/Builder/ParametersMatch.php @@ -9,8 +9,6 @@ */ namespace PHPUnit\Framework\MockObject\Builder; -use PHPUnit\Framework\MockObject\Rule\AnyParameters; - /** * @internal This class is not covered by the backward compatibility promise for PHPUnit */ @@ -44,7 +42,7 @@ public function with(...$arguments); * $b->withAnyParameters(); * * - * @return AnyParameters + * @return ParametersMatch */ public function withAnyParameters(); }