Skip to content

Commit

Permalink
fix: modelType not being passed into determineCollectionType
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw committed Feb 3, 2025
1 parent deb4162 commit 9d12a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReturnTypes/EloquentBuilderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getTypeFromMethodCall(

return TypeCombinator::union(
...collect($classNames)
->map(fn ($className) => $this->collectionHelper->determineCollectionType($className))
->map(fn ($className) => $this->collectionHelper->determineCollectionType($className, $modelType))
->filter()
->all(),
);
Expand Down

0 comments on commit 9d12a23

Please sign in to comment.