8000 add template variables to scope (#55830) · laravel/framework@f9ffdc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9ffdc1

Browse files
add template variables to scope (#55830)
1 parent 89a64cd commit f9ffdc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Database/Eloquent/Scope.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ interface Scope
77
/**
88
* Apply the scope to a given Eloquent query builder.
99
*
10-
* @param \Illuminate\Database\Eloquent\Builder $builder
11-
* @param \Illuminate\Database\Eloquent\Model $model
10+
* @template TModel of \Illuminate\Database\Eloquent\Model
11+
*
12+
* @param \Illuminate\Database\Eloquent\Builder<TModel> $builder
13+
* @param TModel $model
1214
* @return void
1315
*/
1416
public function apply(Builder $builder, Model $model);

0 commit comments

Comments
 (0)
0