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 );