Skip to content

Commit

Permalink
bump infection
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed May 16, 2024
1 parent 2d46a27 commit 719934b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,12 @@ private function getJobArguments(JobInterface $job): array
continue;
}
/** @var ResponseReferenceInterface $value */
if ($value->key() === null) {
$arguments[$name] = $this->run->getReturn($value->job())->mixed();
if ($value->key() !== null) {
$arguments[$name] = $this->run->getReturn($value->job())->array()[$value->key()];

continue;
}

/** @var ResponseReferenceInterface $value */
$arguments[$name] = $this->run->getReturn($value->job())->array()[$value->key()];
$arguments[$name] = $this->run->getReturn($value->job())->mixed();
}

return $arguments;
Expand Down
1 change: 1 addition & 0 deletions tests/RunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public function testWithSkip(): void
$this->assertCount(2, $immutable->skip());
$this->assertSame(['job1', 'job2'], $immutable->skip()->toArray());
$this->expectException(OverflowException::class);
$this->expectExceptionMessage('Job job1 already skipped');
$immutable->withSkip('job1');
}

Expand Down

0 comments on commit 719934b

Please sign in to comment.