You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
Yes, it's still reproducable
What version of Laravel Excel are you using?
3.1.50
What version of Laravel are you using?
10.33.0
What version of PHP are you using?
8.1.23
Describe your issue
Since I upgraded my Laravel project to php 8.1 and the latest versions of all packages, I can't export anything anymore because the "return Excel::download" returns a "Class "MyCLabs\Enum\Enum" not found" error.
How can the issue be reproduced?
I've just called the function to get my export : return Excel::download(new AbonneExport($_POST['start-abo']), 'abonnements-'.date('dmy').'.xlsx');
The "AbonneExport" contained code to retrieve subscriptions from a Woocommerce site, but the exception is still thrown without any import or code inside.
What should be the expected behaviour?
I'm not sure where this exception actually comes from so I was hoping you could guide me. I can't figure out where in the project Enum would be used. Every other part of the site works fine, the exception is just being thrown here. From what I understand php 8.1 now supports the enum class, so I guess it overrides some stuff, but there doesn't seem to be any enum involved here. As it's only happening on exports, I was wondering if you had any idea.
The text was updated successfully, but these errors were encountered:
I don't see how this is related to this package. We don't use MyCLabs\Enum\Enum. You probably have another package that uses that package. Check your composer.lock to see which package installs it.
It seems that one of the component of Laravel-Excel was not updated/installed correctly by composer. I reinstalled the different dependencies from the package to make it work. I can't remember which one fixed it but I'm pretty sure it was either maennchen/zipstream-php or phpoffice/phpspreadsheet (which includes the previous one)
To reinstall a dependency : composer reinstall phpoffice/phpspreadsheet
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.50
What version of Laravel are you using?
10.33.0
What version of PHP are you using?
8.1.23
Describe your issue
Since I upgraded my Laravel project to php 8.1 and the latest versions of all packages, I can't export anything anymore because the "return Excel::download" returns a "Class "MyCLabs\Enum\Enum" not found" error.
How can the issue be reproduced?
I've just called the function to get my export :
return Excel::download(new AbonneExport($_POST['start-abo']), 'abonnements-'.date('dmy').'.xlsx');
The "AbonneExport" contained code to retrieve subscriptions from a Woocommerce site, but the exception is still thrown without any import or code inside.
What should be the expected behaviour?
I'm not sure where this exception actually comes from so I was hoping you could guide me. I can't figure out where in the project Enum would be used. Every other part of the site works fine, the exception is just being thrown here. From what I understand php 8.1 now supports the enum class, so I guess it overrides some stuff, but there doesn't seem to be any enum involved here. As it's only happening on exports, I was wondering if you had any idea.
The text was updated successfully, but these errors were encountered: