Skip to content

Conversation

@imzyf
Copy link
Contributor

@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
Contributor

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

@chack1172
Copy link
Contributor

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?

@imzyf
Copy link
Contributor 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.

@imzyf imzyf requested a review from mfn December 26, 2024 03:18
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.

My bad, didn't realize we've no tests for this generator sadly.

LGTM 👍🏼

@barryvdh barryvdh merged commit a25b947 into barryvdh:master Dec 26, 2024
@barryvdh
Copy link
Owner

I think we need the other templates as well, right? #1634

@chack1172
Copy link
Contributor

chack1172 commented Dec 28, 2024

@barryvdh I've checked and this is the only class @template used by methods if I'm not wrong. Anyway I'll make a PR using the change made in ReflectionDocBlock to dynamically detect class templates instead of hardcoding it in the view. Oh you already changed that.

@barryvdh
Copy link
Owner

Yeah there where a few more, TValue or something

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

5 participants