Skip to content

Commit

Permalink
Add fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 26, 2024
1 parent 2ba8edd commit c7a4e42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function expectConsecutiveCalls(
$matcher = $this->exactly(count($expectedCalls));
$callback = function () use ($matcher, $expectedCalls, $returnValues) {
$index = $matcher->getInvocationCount() - 1;
$expectedArgs = $expectedCalls[$index];
$expectedArgs = $expectedCalls[$index] ?? [];
$actualArgs = func_get_args();
foreach ($expectedArgs as $i => $expected) {
if ($expected instanceof Constraint) {
Expand Down

0 comments on commit c7a4e42

Please sign in to comment.