The expression return $query->whereNull('guild_id') could return the type Illuminate\Database\Query\Builder which is incompatible with the type-hinted return Illuminate\Database\Eloquent\Builder. Consider adding an additional type-check to rule them out.
Loading history...
68
}
69
70
/**
71
* @param Builder $query
72
*
73
* @return Builder
74
*/
75
public function scopeOutflow(Builder $query): Builder