$visualizer = new Visualizer(["width" => 120]);
$visualizer->visualize($periods);
This cause error in the selected line, because max function argument is integer.
In this line not need spread operator ..., because that function can works with arrays.
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
PHP 8.1 When $periods contains one period
This cause error in the selected line, because
max
function argument is integer. In this line not need spread operator...
, because that function can works with arrays.