diff --git a/composer.json b/composer.json index d8b637c..d707a75 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ "require": { "php": ">=7.4", "ext-json": "*", - "avadim/fast-excel-writer": "^4.6", - "avadim/fast-excel-reader": "^2.9", + "avadim/fast-excel-writer": "^4.8", + "avadim/fast-excel-reader": "^2.11", "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0" }, diff --git a/src/FastExcelLaravel/ExcelReader.php b/src/FastExcelLaravel/ExcelReader.php index ccd0a44..9c8f18f 100644 --- a/src/FastExcelLaravel/ExcelReader.php +++ b/src/FastExcelLaravel/ExcelReader.php @@ -26,9 +26,9 @@ public static function open(string $file): ExcelReader * * @return SheetReader */ - public static function createSheet(string $sheetName, $sheetId, $file, $path): SheetReader + public static function createSheet(string $sheetName, $sheetId, $file, $path, $excel): SheetReader { - return new SheetReader($sheetName, $sheetId, $file, $path); + return new SheetReader($sheetName, $sheetId, $file, $path, $excel); } /**