This commit is contained in:
Jephté Clain 2024-11-29 19:30:26 +04:00
parent d2c6d51bdb
commit 8b79df5a75

View File

@ -316,7 +316,7 @@ class SpoutBuilder extends AbstractBuilder {
return false;
}
function _write(array $row, ?array $colsStyle=null, ?array $rowStyle=null): void {
function _write(array $row, ?array $colStyles=null, ?array $rowStyle=null): void {
$sheetParams = $this->sheetParams;
$headerStyle = $sheetParams["header_style"] ?? null;
$oddStyle = $sheetParams["odd_style"] ?? null;
@ -326,7 +326,7 @@ class SpoutBuilder extends AbstractBuilder {
$cells = [];
foreach ($row as $key => $col) {
$style = $colsStyle[$key] ?? null;
$style = $colStyles[$key] ?? null;
self::ensure_style($style);
if ($col === null || $col === "") {
$type = Cell::TYPE_EMPTY;