Update files using Rector.

This commit is contained in:
James Cole
2025-05-29 15:01:06 +02:00
parent 189a323f3c
commit 5be6bb755d
126 changed files with 668 additions and 612 deletions

View File

@@ -49,8 +49,7 @@ class SearchServiceProvider extends ServiceProvider
public function register(): void
{
$this->app->bind(
QueryParserInterface::class,
static function (): GdbotsQueryParser|QueryParser {
static function (): QueryParserInterface {
$implementation = config('search.query_parser');
return match ($implementation) {
@@ -61,8 +60,7 @@ class SearchServiceProvider extends ServiceProvider
);
$this->app->bind(
SearchInterface::class,
static function (Application $app) {
static function (Application $app): SearchInterface {
/** @var OperatorQuerySearch $search */
$search = app(OperatorQuerySearch::class);
if ($app->auth->check()) { // @phpstan-ignore-line (phpstan does not understand the reference to auth)