Fix phpstan reported errors

This commit is contained in:
DariusIII
2026-02-10 16:16:29 +01:00
parent 11c9eaacab
commit c5e55dd562
188 changed files with 881 additions and 1010 deletions
+3 -5
View File
@@ -13,6 +13,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
* @property string $hosthash
* @property string $timestamp
* @property int $releases_id FK to releases.id
* @property int|null $count Computed count from aggregate queries
* @property-read Release $release
* @property-read User $user
*
@@ -30,9 +31,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
*/
class UserDownload extends Model
{
/**
* @var bool
*/
protected $dateFormat = false;
/**
@@ -41,7 +39,7 @@ class UserDownload extends Model
public $timestamps = false;
/**
* @var array
* @var array<string>
*/
protected $guarded = [];
@@ -104,7 +102,7 @@ class UserDownload extends Model
}
/**
* @return \Illuminate\Database\Eloquent\Collection|static[]
* @return \Illuminate\Database\Eloquent\Collection<int, self>
*/
public static function getDownloadRequestsForUser($userID)
{