Skip to content

Commit

Permalink
https://github.com/aVadim483/fast-excel-reader/issues/35
Browse files Browse the repository at this point in the history
  • Loading branch information
aVadim483 committed Dec 21, 2024
1 parent 9fe99da commit 8bdc35f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/FastExcelReader/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ public function fileList(): array
public function openZip(string $innerFile, string $encoding = null, ?int $options = 0): bool
{
$this->innerFile = $innerFile;

$result = $this->open('zip://' . $this->zipFile . '#' . $innerFile, $encoding, $options);
foreach ($this->xmlParserProperties as $property => $value) {
$this->setParserProperty($property, $value);
if ($result) {
foreach ($this->xmlParserProperties as $property => $value) {
$this->setParserProperty($property, $value);
}
}

return $result;
return (bool)$result;
}

/**
Expand Down

0 comments on commit 8bdc35f

Please sign in to comment.