From af8948b5589828fbf55facc964709ef089d8e6b8 Mon Sep 17 00:00:00 2001 From: oleibman <10341515+oleibman@users.noreply.github.com> Date: Sat, 5 Feb 2022 19:50:41 -0800 Subject: [PATCH] 3 New Phpstan 1.4.5 Changes (#2559) * 3 New Phpstan 1.4.5 Changes It requires evidence that second parameter to array_chunk > 0. * Try to Get Github Going Everything showed "waiting for status to be reported" after several hours. Let's see if a comment change kicks things off properly. --- src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php | 6 +++--- src/PhpSpreadsheet/Calculation/MathTrig/Random.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php b/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php index 4cef4625..474f862d 100644 --- a/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php +++ b/src/PhpSpreadsheet/Calculation/MathTrig/MatrixFunctions.php @@ -12,7 +12,7 @@ use PhpOffice\PhpSpreadsheet\Calculation\Functions; class MatrixFunctions { /** - * Convert parameter to matrix. + * Convert parameter to Matrix. * * @param mixed $matrixValues A matrix of values */ @@ -73,13 +73,13 @@ class MatrixFunctions if ($step === 0) { return array_chunk( array_fill(0, $rows * $columns, $start), - $columns + max($columns, 1) ); } return array_chunk( range($start, $start + (($rows * $columns - 1) * $step), $step), - $columns + max($columns, 1) ); } diff --git a/src/PhpSpreadsheet/Calculation/MathTrig/Random.php b/src/PhpSpreadsheet/Calculation/MathTrig/Random.php index 505b7d34..5334f769 100644 --- a/src/PhpSpreadsheet/Calculation/MathTrig/Random.php +++ b/src/PhpSpreadsheet/Calculation/MathTrig/Random.php @@ -82,7 +82,7 @@ class Random }, array_fill(0, $rows * $columns, $min) ), - $columns + max($columns, 1) ); } }