Skip to content

Improve TIntermediateModels generics and add inheritDoc #97

Improve TIntermediateModels generics and add inheritDoc

Improve TIntermediateModels generics and add inheritDoc #97

Triggered via pull request September 4, 2024 14:56
Status Failure
Total duration 35s
Artifacts

static-analysis.yml

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

Annotations

5 errors
phpstan (8.3, stable): src/Traits/BelongsToThrough.php (in context of class Tests/IdeHelper/Models/Comment)#L26
Template type TIntermediateModels of method Tests\IdeHelper\Models\Comment::belongsToThrough() is not referenced in a parameter.
phpstan (8.3, stable): src/Traits/BelongsToThrough.php (in context of class Tests/IdeHelper/Models/Comment)#L66
Method Tests\IdeHelper\Models\Comment::belongsToThrough() should return Znck\Eloquent\Relations\BelongsToThrough<TRelatedModel of Illuminate\Database\Eloquent\Model, TIntermediateModels of array<int, TIntermediateModel of Illuminate\Database\Eloquent\Model>, $this(Tests\IdeHelper\Models\Comment)> but returns Znck\Eloquent\Relations\BelongsToThrough<TRelatedModel of Illuminate\Database\Eloquent\Model, array<int, TIntermediateModel of Illuminate\Database\Eloquent\Model>, $this(Tests\IdeHelper\Models\Comment)>.
phpstan (8.3, stable): src/Traits/BelongsToThrough.php (in context of class Tests/Models/Model)#L26
Template type TIntermediateModels of method Tests\Models\Model::belongsToThrough() is not referenced in a parameter.
phpstan (8.3, stable): src/Traits/BelongsToThrough.php (in context of class Tests/Models/Model)#L66
Method Tests\Models\Model::belongsToThrough() should return Znck\Eloquent\Relations\BelongsToThrough<TRelatedModel of Illuminate\Database\Eloquent\Model, TIntermediateModels of array<int, TIntermediateModel of Illuminate\Database\Eloquent\Model>, $this(Tests\Models\Model)> but returns Znck\Eloquent\Relations\BelongsToThrough<TRelatedModel of Illuminate\Database\Eloquent\Model, array<int, TIntermediateModel of Illuminate\Database\Eloquent\Model>, $this(Tests\Models\Model)>.
phpstan (8.3, stable)
Process completed with exit code 1.