From 3bad503e0ad9f621fb90cd5a418248b4abe91bcb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 26 Oct 2023 13:49:50 +0000 Subject: [PATCH] [rector] Rector fixes --- src/Cloud/Workflow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cloud/Workflow.php b/src/Cloud/Workflow.php index ffe68ca9..d3b63b7a 100644 --- a/src/Cloud/Workflow.php +++ b/src/Cloud/Workflow.php @@ -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 );