Skip to content

Commit 4b41ef2

Browse files
committed
allow inferring generic for query builder for when called with a relation
1 parent c4cf2ee commit 4b41ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getSubject(): Relation|EloquentBuilder
5353
/**
5454
* @template T of Model
5555
*
56-
* @param EloquentBuilder<T>|Relation|class-string<T> $subject
56+
* @param EloquentBuilder<T>|Relation<T, *, *>|class-string<T> $subject
5757
* @return static<T>
5858
*/
5959
public static function for(

0 commit comments

Comments
 (0)