mirror of https://github.com/pixelfed/pixelfed
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)pull/6850/head
parent
baa7774378
commit
f2159197e8
Loading…
Reference in New Issue