From a8e92984b0a164a3f5ad8c8ae6afd02b0ad8cc1b Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 21 Oct 2023 17:43:07 +0100 Subject: [PATCH] chore: phpstan --- .../core/src/Search/Database/AbstractSearcher.php | 14 +++++++------- framework/core/src/Search/SearchResults.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) 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 ) { }