Commit Graph

6 Commits (ffcef3eb2ddf1f4629efeec7bdf0fa25e5b7d554)

Author SHA1 Message Date
Your Name f2159197e8 fix: add return type declarations to Eloquent relation methods
Larastan 3.x requires explicit return types on relation methods to
verify relation existence when using with(), has(), etc. This adds
the appropriate return type declarations to all relation methods
flagged by the larastan.relationExistence rule.

Models fixed:
- Profile (avatar, statuses)
- User (profile)
- Status (profile, media, hashtags)
- DirectMessage (status, author, recipient)
- Report (reporter, status, reportedUser)
- Like (actor, status)
- Media (status)
- Notification (item)
- HashtagFollow (hashtag)
- OauthClient (user)
- Story (profile)
- StatusHashtag (status, hashtag, profile, media)
- AccountInterstitial (user)
- Hashtag (posts)
- CustomFilter (keywords)
- CustomFilterKeyword (customFilter)
- AdminShadowFilter (profile)
- ImportPost (status)
3 months ago
Daniel Supernault 374344754e
Lint 11 months ago
Daniel Supernault 506208f545
Update account settings, add hashtags to relationships 7 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault b9396b7f68 Update Status & StatusHashtag models to fix mass assignment bug 8 years ago
Daniel Supernault d8303e7de5 Add hashtag model/migration and pivot table 9 years ago