Update phpstan level to 6

This commit is contained in:
DariusIII
2026-02-11 14:02:26 +01:00
parent eed6250518
commit f4c444c9b0
291 changed files with 3684 additions and 1089 deletions
+17 -3
View File
@@ -61,21 +61,33 @@ class Video extends Model
*/
public $timestamps = false;
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\VideoAlias, $this>
*/
public function alias(): HasMany
{
return $this->hasMany(VideoAlias::class, 'videos_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Release, $this>
*/
public function release(): HasMany
{
return $this->hasMany(Release::class, 'videos_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\TvEpisode, $this>
*/
public function episode(): HasMany
{
return $this->hasMany(TvEpisode::class, 'videos_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne<\App\Models\TvInfo, $this>
*/
public function tvInfo(): HasOne
{
return $this->hasOne(TvInfo::class, 'videos_id');
@@ -87,7 +99,7 @@ class Video extends Model
*
* @return Model|null|static
*/
public static function getByVideoID($id)
public static function getByVideoID(mixed $id)
{
return self::query()
->select(['videos.*', 'tv_info.summary', 'tv_info.publisher', 'tv_info.image'])
@@ -99,7 +111,7 @@ class Video extends Model
/**
* Retrieves a range of all shows for the show-edit admin list.
*/
public static function getRange(string $showname = ''): LengthAwarePaginator
public static function getRange(string $showname = ''): LengthAwarePaginator // @phpstan-ignore missingType.generics
{
$sql = self::query()
->select(['videos.*', 'tv_info.summary', 'tv_info.publisher', 'tv_info.image'])
@@ -128,8 +140,10 @@ class Video extends Model
/**
* Retrieves and returns a list of shows with eligible releases.
*
* @return array<string, mixed>
*/
public static function getSeriesList($uid, string $letter = '', string $showname = ''): array
public static function getSeriesList(mixed $uid, string $letter = '', string $showname = ''): array
{
$params = [
'uid' => $uid,