-
Notifications
You must be signed in to change notification settings - Fork 68
Laravel App Analyzer #328
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 App Analyzer #328
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition 💪
Hello guys, sorry to bother, but something on these changes is causing the following regression: ---------- begin diff ----------
@@ @@
}
/**
- * @return BelongsTo<User, $this>
+ * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\<REDACTED>\Users\Models\User, $this>
*/
public function user(): BelongsTo
{
----------- end diff -----------
Applied rules:
* AddGenericReturnTypeToRelationsRector I've downgraded to 2.0.3 (just to double check) and it did not happen there, then updated again to 2.0.4 and it yielded the above result sadly. |
Just to clarify but is the only difference is that you're getting the fully qualified name instead of the short model? Might be the PR before this that caused the break by not checking if the tag is already set. |
@brunogaspar no, more likely #316 |
ah i see.. i've reverted the file to this version and the issue is gone, so you're correct, it's not your PR. |
I've got a test that covers your scenario and confirmed it. I just need to do a bit of digging to fix it. |
Thank you @peterfox ! |
Changes
Why
Overall this is just a way to simplify how we make rules that might rely on the Laravel version.