-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Laravel 8 Issue: Too few arguments to function Spatie\Enum\Enum #70
Comments
Seem like version 3 is completely different and is not backward compatible |
Just got the same issue in the I'll have to revert my changes. :( |
Hey, if the |
I will just convert all of my enums to the new way |
Sorry to bump this old thread, but since it was the first result for me when googling: if you're seeing this error in your Laravel project, it's also possible you're dumb like me and you mixed up |
At that time, as directed towards in spatie/laravel-enum#53 it was indeed a bit unclear that v3 had a new Base class especially made for Laravel. |
I'm getting the following error:
In Enum.php line 53
Too few arguments to function Spatie\Enum\Enum::__construct(), 0 passed in app\Enums\BankAccountTypeEnum.php on line 11 and exactly 1 expected
app\Enums\BankAccountTypeEnum.php
config\custom\cdv.php
The text was updated successfully, but these errors were encountered: