Skip to content

upgrade to phpstan 2 and larastan 3 #201

upgrade to phpstan 2 and larastan 3

upgrade to phpstan 2 and larastan 3 #201

Re-run triggered November 19, 2024 19:51
Status Failure
Total duration 3m 39s
Artifacts

static-analysis.yml

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

Annotations

10 errors
phpstan (8.3, stable): src/Eloquent/Relations/Graph/Ancestors.php#L51
Parameter #1 $models of method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Graph\Ancestors<TRelatedModel of Illuminate\Database\Eloquent\Model,TDeclaringModel of Illuminate\Database\Eloquent\Model>::addEagerExpression() expects list<TDeclaringModel of Illuminate\Database\Eloquent\Model>, array<int, TDeclaringModel of Illuminate\Database\Eloquent\Model> given.
phpstan (8.3, stable): src/Eloquent/Relations/Graph/Descendants.php#L51
Parameter #1 $models of method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Graph\Descendants<TRelatedModel of Illuminate\Database\Eloquent\Model,TDeclaringModel of Illuminate\Database\Eloquent\Model>::addEagerExpression() expects list<TDeclaringModel of Illuminate\Database\Eloquent\Model>, array<int, TDeclaringModel of Illuminate\Database\Eloquent\Model> given.
phpstan (8.3, stable): src/Eloquent/Relations/Graph/Traits/Concatenation/IsConcatenableRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/Graph/Ancestors)#L193
Method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Graph\Ancestors::buildDictionaryForDeepRelationship() should return array<int|string, list<Illuminate\Database\Eloquent\Model>> but returns array<int|string, array<int, Illuminate\Database\Eloquent\Model>>.
phpstan (8.3, stable): src/Eloquent/Relations/Graph/Traits/Concatenation/IsConcatenableRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/Graph/Descendants)#L193
Method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Graph\Descendants::buildDictionaryForDeepRelationship() should return array<int|string, list<Illuminate\Database\Eloquent\Model>> but returns array<int|string, array<int, Illuminate\Database\Eloquent\Model>>.
phpstan (8.3, stable): src/Eloquent/Relations/Graph/Traits/IsRecursiveRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/Graph/Ancestors)#L87
Method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Graph\Ancestors::baseBuildDictionary() should return array<int|string, list<Illuminate\Database\Eloquent\Model>> but returns array<int|string, array<int, Illuminate\Database\Eloquent\Model>>.
phpstan (8.3, stable): src/Eloquent/Relations/Graph/Traits/IsRecursiveRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/Graph/Descendants)#L87
Method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Graph\Descendants::baseBuildDictionary() should return array<int|string, list<Illuminate\Database\Eloquent\Model>> but returns array<int|string, array<int, Illuminate\Database\Eloquent\Model>>.
phpstan (8.3, stable): src/Eloquent/Relations/Traits/Concatenation/IsConcatenableAncestorsRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/Ancestors)#L75
Method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Ancestors::buildDictionaryForDeepRelationship() should return array<int|string, list<Illuminate\Database\Eloquent\Model>> but returns array<int|string, array<int, Illuminate\Database\Eloquent\Model>>.
phpstan (8.3, stable): src/Eloquent/Relations/Traits/Concatenation/IsConcatenableDescendantsRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/Descendants)#L85
Method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\Descendants::buildDictionaryForDeepRelationship() should return array<int|string, list<Illuminate\Database\Eloquent\Model>> but returns array<int|string, array<int, Illuminate\Database\Eloquent\Model>>.
phpstan (8.3, stable): src/Eloquent/Relations/Traits/IsOfDescendantsRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/BelongsToManyOfDescendants)#L62
Parameter #2 $models of method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\BelongsToManyOfDescendants<TRelatedModel of Illuminate\Database\Eloquent\Model,TDeclaringModel of Illuminate\Database\Eloquent\Model>::addEagerExpressionWhereConstraints() expects list<TDeclaringModel of Illuminate\Database\Eloquent\Model>, array<int, TDeclaringModel of Illuminate\Database\Eloquent\Model> given.
phpstan (8.3, stable): src/Eloquent/Relations/Traits/IsOfDescendantsRelation.php (in context of class Staudenmeir/LaravelAdjacencyList/Eloquent/Relations/HasManyOfDescendants)#L62
Parameter #2 $models of method Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\HasManyOfDescendants<TRelatedModel of Illuminate\Database\Eloquent\Model,TDeclaringModel of Illuminate\Database\Eloquent\Model>::addEagerExpressionWhereConstraints() expects list<TDeclaringModel of Illuminate\Database\Eloquent\Model>, array<int, TDeclaringModel of Illuminate\Database\Eloquent\Model> given.