driftingly/rector-laravel

Relations return type rector is incomplete

Closed this issue · 2 comments

When utilising the AddGenericReturnTypeToRelationsRector rector, some of the relations it generates are incomplete. In my case, this mostly affects belongs to, where Larastan is expecting <RelatedModel, CurrentModel> but is only recieving . I have a feeling quite a few of the relationships have this expectation.

@chris-ware Can you check this again?

@rene-bos has been doing a lot of work on this lately:

Closing for now, feel free to reopen if this is still an issue.