diff --git a/src/TestsExcelDocuments.php b/src/TestsExcelDocuments.php index 115d4dd..61088d8 100644 --- a/src/TestsExcelDocuments.php +++ b/src/TestsExcelDocuments.php @@ -13,7 +13,7 @@ trait TestsExcelDocuments { $filename = sys_get_temp_dir() . '/' . str()->uuid()->toString(); file_put_contents($filename, $content); - $spreadsheet = IOFactory::load($filename); + $spreadsheet = IOFactory::load($filename, 0, [IOFactory::READER_XLSX]); $writer = new Csv($spreadsheet); $writer->save($filename); $spreadsheet->disconnectWorksheets();