From 16e34095e02e07635cea04d125fc6b5dda049965 Mon Sep 17 00:00:00 2001 From: Piotr Nguyen Ha Date: Mon, 16 May 2022 14:33:47 +0200 Subject: [PATCH] prevent for setting row formats as array --- src/Spout/Writer/XLSX/Manager/Style/StyleRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spout/Writer/XLSX/Manager/Style/StyleRegistry.php b/src/Spout/Writer/XLSX/Manager/Style/StyleRegistry.php index 14eb986..01a852c 100644 --- a/src/Spout/Writer/XLSX/Manager/Style/StyleRegistry.php +++ b/src/Spout/Writer/XLSX/Manager/Style/StyleRegistry.php @@ -141,7 +141,7 @@ class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry $styleId = $style->getId(); $format = $style->getFormat(); - if ($format) { + if (!is_array($format)) { $isFormatRegistered = isset($this->registeredFormats[$format]); // We need to track the already registered format definitions