Skip to content

Commit

Permalink
Add missing return shape for withConsecutive()
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
ostrolucky authored Dec 16, 2023
1 parent c83775e commit 4951024
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ConsecutiveParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

trait ConsecutiveParams
{
/** @return list<Callback> */
public static function withConsecutive(array $firstCallArguments, array ...$consecutiveCallsArguments): iterable
{
foreach ($consecutiveCallsArguments as $consecutiveCallArguments) {
Expand Down

0 comments on commit 4951024

Please sign in to comment.