Commit Graph

13 Commits (47d98bfb55d25b11d417b921759b3c706eeb792d)

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)
4 weeks ago
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
4 weeks ago
Your Name 2f06f30508 fix 7 months ago
Daniel Supernault 53742fa699
Lint 9 months ago
Daniel Supernault b1f95a7213
Bump laravel, v9 => v10 3 years ago
Daniel Supernault 7e333059fb
Update models 4 years ago
Daniel Supernault 65be6bdd51
Update Report model 7 years ago
Daniel Supernault 9f29ab9338
Update Report model 8 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault 60923af897
Update Report model 8 years ago
Daniel Supernault 1a0661aec3
Update Report model, add new methods 8 years ago
Daniel Supernault bac7e05d6f Add AccountLog model/migration 8 years ago
Daniel Supernault 31a238e925 Add Report model/migration/controller 8 years ago