Skip to content

Commit 114c0fc

Browse files
Sync signature
1 parent e47d098 commit 114c0fc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Framework/MockObject/Runtime/Interface/InvocationStubber.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace PHPUnit\Framework\MockObject;
1111

1212
use PHPUnit\Framework\Constraint\Constraint;
13+
use PHPUnit\Framework\MockObject\Runtime\PropertyHook;
1314
use PHPUnit\Framework\MockObject\Stub\Stub;
1415
use Throwable;
1516

@@ -19,9 +20,11 @@
1920
interface InvocationStubber
2021
{
2122
/**
23+
* @param Constraint|non-empty-string|PropertyHook $constraint
24+
*
2225
* @return $this
2326
*/
24-
public function method(Constraint|string $constraint): self;
27+
public function method(Constraint|PropertyHook|string $constraint): self;
2528

2629
/**
2730
* @param non-empty-string $id

src/Framework/MockObject/Runtime/InvocationStubberImplementation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public function __construct(InvocationHandler $handler, Matcher $matcher, Config
6161
}
6262

6363
/**
64+
* @param Constraint|non-empty-string|PropertyHook $constraint
65+
*
6466
* @throws InvalidArgumentException
6567
* @throws MethodCannotBeConfiguredException
6668
* @throws MethodNameAlreadyConfiguredException

0 commit comments

Comments
 (0)