-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Removing extends from generated class breaks autocomplete #1299
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
Comments
Can you use |
After running that command it appears to have fixed it even after reverting back to just the |
Actually I do think this is an issue. After looking into it some more I realized my output doesn't include the This appears to be caused by the line here where it ignores adding the tag if there is a mixin present in the Model class, which there always will be after the first run since the command writes a mixin. The commit adding it mentions its for preventing duplicate mixin tags but shouldn't it only be checking for tags with the |
Versions:
Description:
#1268 changed mixin mode to not add an extends to the generated class. This breaks the autocomplete for functions like
Model->find()
as my classes no longer extend\Eloquent
Steps To Reproduce:
ide-helper:models -M
find()
function on any model and see that the return type is listed as mixed instead of the proper classThe text was updated successfully, but these errors were encountered: