Skip to content

Increase PHPStan level to 6 #105

Increase PHPStan level to 6

Increase PHPStan level to 6 #105

Triggered via pull request September 10, 2024 23:19
Status Failure
Total duration 34s
Artifacts

static-analysis.yml

on: pull_request
Matrix: phpstan
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Project)#L30
Method Tests\Concatenation\EloquentJsonRelations\Models\Project::hasManyDeep() should return Staudenmeir\EloquentHasManyDeep\HasManyDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Tests\Concatenation\EloquentJsonRelations\Models\Project)> but returns Staudenmeir\EloquentHasManyDeep\HasManyDeep<Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Model>.
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Project)#L30
Unable to resolve the template type TDeclaringModel in call to method Tests\Concatenation\EloquentJsonRelations\Models\Project::newHasManyDeep()
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Project)#L48
Method Tests\Concatenation\EloquentJsonRelations\Models\Project::hasOneDeep() should return Staudenmeir\EloquentHasManyDeep\HasOneDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Tests\Concatenation\EloquentJsonRelations\Models\Project)> but returns Staudenmeir\EloquentHasManyDeep\HasOneDeep<Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Model>.
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Project)#L48
Unable to resolve the template type TDeclaringModel in call to method Tests\Concatenation\EloquentJsonRelations\Models\Project::newHasOneDeep()
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Project)#L187
Method Tests\Concatenation\EloquentJsonRelations\Models\Project::newHasManyDeep() should return Staudenmeir\EloquentHasManyDeep\HasManyDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, TDeclaringModel of Illuminate\Database\Eloquent\Model> but returns Staudenmeir\EloquentHasManyDeep\HasManyDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Model>.
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Project)#L205
Method Tests\Concatenation\EloquentJsonRelations\Models\Project::newHasOneDeep() should return Staudenmeir\EloquentHasManyDeep\HasOneDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, TDeclaringModel of Illuminate\Database\Eloquent\Model> but returns Staudenmeir\EloquentHasManyDeep\HasOneDeep<Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Model>.
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Role)#L30
Method Tests\Concatenation\EloquentJsonRelations\Models\Role::hasManyDeep() should return Staudenmeir\EloquentHasManyDeep\HasManyDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Tests\Concatenation\EloquentJsonRelations\Models\Role)> but returns Staudenmeir\EloquentHasManyDeep\HasManyDeep<Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Model>.
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Role)#L30
Unable to resolve the template type TDeclaringModel in call to method Tests\Concatenation\EloquentJsonRelations\Models\Role::newHasManyDeep()
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Role)#L48
Method Tests\Concatenation\EloquentJsonRelations\Models\Role::hasOneDeep() should return Staudenmeir\EloquentHasManyDeep\HasOneDeep<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Tests\Concatenation\EloquentJsonRelations\Models\Role)> but returns Staudenmeir\EloquentHasManyDeep\HasOneDeep<Illuminate\Database\Eloquent\Model, Illuminate\Database\Eloquent\Model>.
phpstan (8.3, stable): src/HasRelationships.php (in context of class Tests/Concatenation/EloquentJsonRelations/Models/Role)#L48
Unable to resolve the template type TDeclaringModel in call to method Tests\Concatenation\EloquentJsonRelations\Models\Role::newHasOneDeep()