Skip to content

Commit c4cf2ee

Browse files
committed
use method declared generic for query builder for, as static method can't use class level generic
1 parent 4f937d8 commit c4cf2ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/QueryBuilder.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ public function getSubject(): Relation|EloquentBuilder
5151
}
5252

5353
/**
54-
* @param EloquentBuilder<TModel>|Relation|class-string<TModel> $subject
55-
* @return static<TModel>
54+
* @template T of Model
55+
*
56+
* @param EloquentBuilder<T>|Relation|class-string<T> $subject
57+
* @return static<T>
5658
*/
5759
public static function for(
5860
EloquentBuilder|Relation|string $subject,

0 commit comments

Comments
 (0)