diff --git a/framework/core/src/Search/Database/AbstractSearcher.php b/framework/core/src/Search/Database/AbstractSearcher.php index d191af3135..86f026f0ea 100644 --- a/framework/core/src/Search/Database/AbstractSearcher.php +++ b/framework/core/src/Search/Database/AbstractSearcher.php @@ -63,16 +63,16 @@ protected function getTotalResults(Builder $query): Closure $query = $query->toBase(); if ($query->unions) { - $query->unions = null; - $query->unionLimit = null; - $query->unionOffset = null; - $query->unionOrders = null; + $query->unions = null; // @phpstan-ignore-line + $query->unionLimit = null; // @phpstan-ignore-line + $query->unionOffset = null; // @phpstan-ignore-line + $query->unionOrders = null; // @phpstan-ignore-line $query->setBindings([], 'union'); } - $query->offset = null; - $query->limit = null; - $query->orders = null; + $query->offset = null; // @phpstan-ignore-line + $query->limit = null; // @phpstan-ignore-line + $query->orders = null; // @phpstan-ignore-line $query->setBindings([], 'order'); return $query->getConnection() diff --git a/framework/core/src/Search/SearchResults.php b/framework/core/src/Search/SearchResults.php index 4d431f6e09..fb3dde8231 100644 --- a/framework/core/src/Search/SearchResults.php +++ b/framework/core/src/Search/SearchResults.php @@ -17,7 +17,7 @@ class SearchResults public function __construct( protected Collection $results, protected bool $areMoreResults, - /** @var callable(): int */ + /** @var Closure(): int */ protected Closure $totalResults ) { }