Skip to content

Commit

Permalink
Merge pull request #36 from vtinfo/feature/9888
Browse files Browse the repository at this point in the history
9888 - Disabled writing ignored errors for Xlsx Worksheets
  • Loading branch information
bshain-vtinfo authored Oct 15, 2024
2 parents 516b936 + dc61479 commit c7abcf8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

class Worksheet extends WriterPart
{
private bool $writeIgnoredErrors = false;

private string $numberStoredAsText = '';

private string $formula = '';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c7abcf8

Please sign in to comment.