diff --git a/src/Matcher/AnyParameters.php b/src/Matcher/AnyParameters.php index dae76d86..1d854528 100644 --- a/src/Matcher/AnyParameters.php +++ b/src/Matcher/AnyParameters.php @@ -9,7 +9,7 @@ */ namespace PHPUnit\Framework\MockObject\Matcher; -use PHPUnit\Framework\MockObject\Invocation; +use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** * Invocation matcher which allows any parameters to a method. @@ -25,11 +25,11 @@ public function toString() } /** - * @param Invocation $invocation + * @param BaseInvocation $invocation * * @return bool */ - public function matches(Invocation $invocation) + public function matches(BaseInvocation $invocation) { return true; } diff --git a/src/Matcher/InvokedCount.php b/src/Matcher/InvokedCount.php index 006c62ae..6aba68ae 100644 --- a/src/Matcher/InvokedCount.php +++ b/src/Matcher/InvokedCount.php @@ -10,7 +10,7 @@ namespace PHPUnit\Framework\MockObject\Matcher; use PHPUnit\Framework\ExpectationFailedException; -use PHPUnit\Framework\MockObject\Invocation; +use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; /** * Invocation matcher which checks if a method has been invoked a certain amount @@ -52,11 +52,11 @@ public function toString() } /** - * @param Invocation $invocation + * @param BaseInvocation $invocation * * @throws ExpectationFailedException */ - public function invoked(Invocation $invocation) + public function invoked(BaseInvocation $invocation) { parent::invoked($invocation); diff --git a/src/Matcher/MethodName.php b/src/Matcher/MethodName.php index 83d34cd2..36fc373e 100644 --- a/src/Matcher/MethodName.php +++ b/src/Matcher/MethodName.php @@ -11,7 +11,7 @@ use PHPUnit\Framework\Constraint\Constraint; use PHPUnit\Framework\Constraint\IsEqual; -use PHPUnit\Framework\MockObject\Invocation; +use PHPUnit\Framework\MockObject\Invocation as BaseInvocation; use PHPUnit\Util\InvalidArgumentHelper; /** @@ -62,11 +62,11 @@ public function toString() } /** - * @param Invocation $invocation + * @param BaseInvocation $invocation * * @return bool */ - public function matches(Invocation $invocation) + public function matches(BaseInvocation $invocation) { return $this->constraint->evaluate($invocation->getMethodName(), '', true); }