Added casting to array. If this is missing it can happen that the returned value is null.

This commit is contained in:
Dustin Hauer 2023-04-12 14:23:05 +02:00
parent f54dded1e0
commit 6544a72034

View file

@ -57,7 +57,7 @@ class ProgressViewHelper extends AbstractViewHelper
//handling famous off by one
$activeStep -= $offset;
//make sure our array index is numeric
$links = \array_values($links);
$links = \array_values((array)$links);
if (!$linkCount) {
$linkCount = \count($links);
}