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

fix: add @template TModel of static for Eloquent #1631

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

imzyf
Copy link

@imzyf imzyf commented Dec 19, 2024

Summary

fix: #1572

adding this docbloc for TModel of Eloquent class in ide-helper fix the return type.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@joelstein
Copy link

This works for me with something like MyModel::find(123).

@chack1172
Copy link

Working for me

Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test, please?

resources/views/helper.php Outdated Show resolved Hide resolved
@imzyf
Copy link
Author

imzyf commented Dec 23, 2024

Can we have a test, please?

Hi @mfn

Regarding writing test cases, do you have any ideas or suggestions? I'm not quite sure how to write test cases for this.

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

Successfully merging this pull request may close these issues.

Issues after Laravel 11.15
4 participants