Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug declaration ExcelReader::createSheet #2

Closed
mefutu01 opened this issue Nov 10, 2023 · 2 comments
Closed

Bug declaration ExcelReader::createSheet #2

mefutu01 opened this issue Nov 10, 2023 · 2 comments

Comments

@mefutu01
Copy link

Hi I have the latest version of your software "^2.4". Lately I'm starting to get execution errors like this.

Declaration of avadim\FastExcelLaravel\ExcelReader::createSheet(string $sheetName, $sheetId, $file, $path): avadim\FastExcelLaravel\SheetReader must be compatible with avadim\FastExcelReader\Excel::createSheet(string $sheetName, $sheetId, $file, $path, $excel): avadim\FastExcelReader\Interfaces\InterfaceSheetReader

Can you please help with that. The code that breaks here .

$file = $request->validate(['import' => 'file|mimes:xls,xlsx']);
$productIds = [];
$excel = \Excel::open($file['import']);

@mefutu01
Copy link
Author

I used
$excel = \avadim\FastExcelReader\Excel::open($file['import']);

That solved my problem.

@aVadim483
Copy link
Owner

thanx for report, fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants