Skip to content

Commit 67dfeee

Browse files
PostgresEngine Update
Added the LazyCollection use statement. Updated some returns in the DocBlock to reflect the actual return values.
1 parent accd8f8 commit 67dfeee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PostgresEngine.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Database\Eloquent\Collection;
88
use Illuminate\Database\Eloquent\Model;
99
use Illuminate\Support\Arr;
10+
use Illuminate\Support\LazyCollection;
1011
use Laravel\Scout\Builder;
1112
use Laravel\Scout\Engines\Engine;
1213
use ScoutEngines\Postgres\TsQuery\PhraseToTsQuery;
@@ -76,7 +77,7 @@ public function update($models)
7677
* Perform update of the given model.
7778
*
7879
* @param \Illuminate\Database\Eloquent\Model $model
79-
* @return bool
80+
* @return bool|int
8081
*/
8182
protected function performUpdate(Model $model)
8283
{
@@ -426,7 +427,7 @@ protected function rankingExpression(Model $model, $indexColumn)
426427
* Get rank function.
427428
*
428429
* @param \Illuminate\Database\Eloquent\Model $model
429-
* @return int
430+
* @return string
430431
*/
431432
protected function rankFunction(Model $model)
432433
{

0 commit comments

Comments
 (0)