Skip to content

Commit 049ad01

Browse files
[9.x] Adds types to makeAllSearchableUsing (#660)
* Adds types to `makeAllSearchableUsing` * Apply fixes from StyleCI --------- Co-authored-by: StyleCI Bot <[email protected]>
1 parent e078c3d commit 049ad01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Searchable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Laravel\Scout;
44

5+
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
56
use Illuminate\Database\Eloquent\SoftDeletes;
67
use Illuminate\Support\Collection as BaseCollection;
78
use Illuminate\Support\Str;
@@ -155,7 +156,7 @@ public static function makeAllSearchable($chunk = null)
155156
* @param \Illuminate\Database\Eloquent\Builder $query
156157
* @return \Illuminate\Database\Eloquent\Builder
157158
*/
158-
protected function makeAllSearchableUsing($query)
159+
protected function makeAllSearchableUsing(EloquentBuilder $query)
159160
{
160161
return $query;
161162
}

0 commit comments

Comments
 (0)