Add type hints from DocBlocks

This commit is contained in:
Shift
2023-05-24 21:33:16 +00:00
parent 979b9f704c
commit 4d7d0ed74d
46 changed files with 191 additions and 190 deletions

View File

@@ -41,7 +41,7 @@ class Event extends Model
*
* @return MorphMany
*/
public function attachments()
public function attachments(): MorphMany
{
return $this->morphMany(\App\Models\Attachment::class, 'attachable');
}
@@ -51,7 +51,7 @@ class Event extends Model
*
* @return BelongsToMany
*/
public function users()
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class, 'event_user', 'event_id', 'user_id');
}