From 388483296fdbdeafb3151556fb1aa484230c0815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Tue, 26 Nov 2024 11:44:39 +0100 Subject: [PATCH] Update SearchProvider.php --- src/Product/SearchProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Product/SearchProvider.php b/src/Product/SearchProvider.php index 0be2d0ee2..b09f95409 100644 --- a/src/Product/SearchProvider.php +++ b/src/Product/SearchProvider.php @@ -71,14 +71,14 @@ public function __construct( Filters\Converter $converter, URLSerializer $serializer, Filters\DataAccessor $dataAccessor, - ?SearchFactory $searchFactory = null, + SearchFactory $searchFactory, Filters\Provider $provider ) { $this->module = $module; $this->filtersConverter = $converter; $this->urlSerializer = $serializer; $this->dataAccessor = $dataAccessor; - $this->searchFactory = $searchFactory === null ? new SearchFactory() : $searchFactory; + $this->searchFactory = $searchFactory; $this->provider = $provider; }