Skip to content

Commit 4951024

Browse files
authored
Add missing return shape for withConsecutive()
Without this, SA tools are complaining as such: ``` Method PHPUnit\Framework\MockObject\Builder\InvocationMocker::with called with unpacked iterable iterable<mixed, mixed> with invalid key (must be int|string) ```
1 parent c83775e commit 4951024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ConsecutiveParams.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
trait ConsecutiveParams
1414
{
15+
/** @return list<Callback> */
1516
public static function withConsecutive(array $firstCallArguments, array ...$consecutiveCallsArguments): iterable
1617
{
1718
foreach ($consecutiveCallsArguments as $consecutiveCallArguments) {

0 commit comments

Comments
 (0)