Closed peterfox closed 11 months ago
Adds a new rule to help add type hinting in a similar way to #138
Change typehint of closure parameter in where method of Eloquent Builder
RectorLaravel\Rector\MethodCall\EloquentWhereTypeHintClosureParameterRector
-$query->where(function ($query) { +$query->where(function (\Illuminate\Contracts\Database\Eloquent\Builder $query) { $query->where('id', 1); });
Covers both static use with a Model and the instant's use on the builder.
Adds a new rule to help add type hinting in a similar way to #138
EloquentWhereTypeHintClosureParameterRector
Change typehint of closure parameter in where method of Eloquent Builder
RectorLaravel\Rector\MethodCall\EloquentWhereTypeHintClosureParameterRector
Covers both static use with a Model and the instant's use on the builder.