Skip to content

Commit

Permalink
chore: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 21, 2023
1 parent b477a41 commit a8e9298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions framework/core/src/Search/Database/AbstractSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/Search/SearchResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SearchResults
public function __construct(
protected Collection $results,
protected bool $areMoreResults,
/** @var callable(): int */
/** @var Closure(): int */
protected Closure $totalResults
) {
}
Expand Down

0 comments on commit a8e9298

Please sign in to comment.