Skip to content

Commit

Permalink
Use createFromFileByMimeType method exclusively
Browse files Browse the repository at this point in the history
  • Loading branch information
willrowe authored Jan 7, 2025
1 parent aa0bec2 commit a9a69ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SimpleExcelReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(protected string $path)
$this->csvOptions = new CSVOptions();
$this->xlsxOptions = new XLSXOptions();

$this->reader = ReaderFactory::createFromFile($this->path);
$this->reader = ReaderFactory::createFromFileByMimeType($this->path);

$this->setReader();
}
Expand All @@ -60,7 +60,7 @@ protected function setReader(): void
default => null,
};

$this->reader = ReaderFactory::createFromFile($this->path, $options);
$this->reader = ReaderFactory::createFromFileByMimeType($this->path, $options);
}

public function getPath(): string
Expand Down

0 comments on commit a9a69ee

Please sign in to comment.