Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Reader/ODS/SheetIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@
public function current(): Sheet
{
$escapedSheetName = $this->xmlReader->getAttribute(self::XML_ATTRIBUTE_TABLE_NAME);
if ($escapedSheetName === null) {

$escapedSheetName = "Sheet".($this->currentSheetIndex + 1);
}
\assert(null !== $escapedSheetName);

Check failure on line 141 in src/Reader/ODS/SheetIterator.php

View workflow job for this annotation

GitHub Actions / Static Analysis (8.3)

Strict comparison using !== between null and string will always evaluate to true.

Check failure on line 141 in src/Reader/ODS/SheetIterator.php

View workflow job for this annotation

GitHub Actions / Static Analysis (8.3)

Call to function assert() with true will always evaluate to true.
$sheetName = $this->escaper->unescape($escapedSheetName);

$isSheetActive = $this->isSheetActive($sheetName, $this->currentSheetIndex, $this->activeSheetName);
Expand Down
Loading