-
Notifications
You must be signed in to change notification settings - Fork 71
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
InvalidArgumentException Could not get class storage for eloquent #271
Comments
Thanks for reporting! Do you have ide-helper files locally when you run psalm? |
No, I don't use IDE helpers. |
@eusonlito This is all what I know ATM. I'm working on this issue |
I've always been confused why ide-helper uses an alias of Perhaps we may need to manually alias |
I was able to get psalm to run on your project when manually adding this line to your
We should fix this internally, however we have a few options:
barryvdh/laravel-ide-helper#517 for reference |
Maybe the first option would be the easiest to implement at this moment. It would solve this problem with minimal changes. Then you could ask the IDE for the necessary changes to correctly resolve the class :) |
yep! Are you up for a PR @eusonlito ? I think off the top of my head, you may be able to adjust the app aliases at runtime here? https://github.com/psalm/psalm-plugin-laravel/blob/master/src/Providers/ApplicationProvider.php#L112-L121 edit: errr, actually that would only work for plugins. I think you may be able to adjust the config in |
Describe the bug
Impacted Versions
Additional context
Error is not always in same file with
--debug-by-line
parameter.Steps
composer install
./vendor/bin/psalm
The text was updated successfully, but these errors were encountered: