Skip to content

Commit 31366b7

Browse files
Merge branch '11.5' into 12.0
2 parents 40f25ec + ce4d2fa commit 31366b7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,45 @@ interface InvocationStubber
1919
{
2020
public function will(Stub $stub): Identity;
2121

22+
/**
23+
* @return $this
24+
*/
2225
public function willReturn(mixed $value, mixed ...$nextValues): self;
2326

27+
/**
28+
* @return $this
29+
*/
2430
public function willReturnReference(mixed &$reference): self;
2531

2632
/**
2733
* @param array<int, array<int, mixed>> $valueMap
34+
*
35+
* @return $this
2836
*/
2937
public function willReturnMap(array $valueMap): self;
3038

39+
/**
40+
* @return $this
41+
*/
3142
public function willReturnArgument(int $argumentIndex): self;
3243

44+
/**
45+
* @return $this
46+
*/
3347
public function willReturnCallback(callable $callback): self;
3448

49+
/**
50+
* @return $this
51+
*/
3552
public function willReturnSelf(): self;
3653

54+
/**
55+
* @return $this
56+
*/
3757
public function willReturnOnConsecutiveCalls(mixed ...$values): self;
3858

59+
/**
60+
* @return $this
61+
*/
3962
public function willThrowException(Throwable $exception): self;
4063
}

0 commit comments

Comments
 (0)