Skip to content

Fix errors reported by phpstan2.0 #2

Fix errors reported by phpstan2.0

Fix errors reported by phpstan2.0 #2

Triggered via push November 15, 2024 13:52
Status Failure
Total duration 1m 9s
Artifacts

phpstan.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/Manager)#L24
Generic type Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphToMany: TRelatedModel, TDeclaringModel
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/Manager)#L26
Method App\Models\Manager::stables() should return Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> but returns Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable, $this(App\Models\Manager)>.
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/Manager)#L45
Generic type Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphToMany: TRelatedModel, TDeclaringModel
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/Manager)#L47
Method App\Models\Manager::previousStables() should return Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> but returns Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable, $this(App\Models\Manager)>.
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/TagTeam)#L24
Generic type Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphToMany: TRelatedModel, TDeclaringModel
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/TagTeam)#L26
Method App\Models\TagTeam::stables() should return Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> but returns Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable, $this(App\Models\TagTeam)>.
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/TagTeam)#L45
Generic type Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphToMany: TRelatedModel, TDeclaringModel
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/TagTeam)#L47
Method App\Models\TagTeam::previousStables() should return Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> but returns Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable, $this(App\Models\TagTeam)>.
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/Wrestler)#L24
Generic type Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> in PHPDoc tag @return does not specify all template types of class Illuminate\Database\Eloquent\Relations\MorphToMany: TRelatedModel, TDeclaringModel
PHPStan - P8.3 - L11 - prefer-dist - ubuntu-latest: app/Models/Concerns/CanJoinStables.php (in context of class App/Models/Wrestler)#L26
Method App\Models\Wrestler::stables() should return Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable> but returns Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\Stable, $this(App\Models\Wrestler)>.