Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 26, 2023
1 parent e0f0656 commit 3bad503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cloud/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ private static function fromApiModel(Api\Client $client, Api\Model\WorkflowRead
new ProbeList(...array_map(
fn (Api\Model\Probe $probe, int $order) => new Probe($probe->getLabel(), $probe->getCode(), $order),
$probes = $step->getProbes(),
range(0, \count($probes)),
range(0, is_countable($probes) ? \count($probes) : 0),
)),
$order
),
$steps = $job->getPipeline()->getSteps(),
range(0, \count($steps)),
range(0, \count((array) $steps)),
)),
$order
);
Expand Down

0 comments on commit 3bad503

Please sign in to comment.