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.
This commit is contained in:
oleibman 2022-02-05 19:50:41 -08:00 committed by GitHub
parent 59ae5e20b5
commit af8948b558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -82,7 +82,7 @@ class Random
},
array_fill(0, $rows * $columns, $min)
),
$columns
max($columns, 1)
);
}
}