From 8aefd17b06ee3c26d00b472a154a48898b884d15 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 15 Jul 2024 23:31:09 +0200 Subject: [PATCH] Fix: Limit readers to excel when testing content --- src/TestsExcelDocuments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();