diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b940381e3..b3fb1537fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com) and this project adheres to [Semantic Versioning](https://semver.org). +## 2024-10-16 - 3.3.0.2 + +### Added + +- Nothing + +### Changed + +- Disabled writing ignored errors for Xlsx Worksheets + +### Deprecated + +- Nothing + +### Removed + +- Nothing + +### Fixed + +- Nothing + ## 2024-10-02 - 3.3.0.1 ### Added diff --git a/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php b/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php index 28a7c0ee8b..711ed1ae5a 100644 --- a/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php +++ b/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php @@ -22,6 +22,8 @@ class Worksheet extends WriterPart { + private bool $writeIgnoredErrors = false; + private string $numberStoredAsText = ''; private string $formula = ''; @@ -142,7 +144,9 @@ public function writeWorksheet(PhpspreadsheetWorksheet $worksheet, array $string $this->writeAlternateContent($objWriter, $worksheet); // IgnoredErrors - $this->writeIgnoredErrors($objWriter); + if ($this->writeIgnoredErrors) { + $this->writeIgnoredErrors($objWriter); + } // BackgroundImage must come after ignored, before table $this->writeBackgroundImage($objWriter, $worksheet);