Skip to content

Commit efb9b7b

Browse files
committed
[Compat] Fixes #3578 PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated
1 parent ddf4c73 commit efb9b7b

File tree

2 files changed

+2
-2
lines changed
  • src
    • module-elasticsuite-catalog-graph-ql/Model/Resolver/Products/Query
    • module-elasticsuite-core/Search/Request/Query/Vector/Opensearch

2 files changed

+2
-2
lines changed

src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products/Query/Search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct(
7979
FieldSelection $fieldSelection,
8080
ProductSearch $productProvider,
8181
SearchCriteriaBuilder $searchCriteriaBuilder,
82-
Suggestions $suggestions = null
82+
?Suggestions $suggestions = null
8383
) {
8484
$this->search = $search;
8585
$this->searchResultFactory = $searchResultFactory;

src/module-elasticsuite-core/Search/Request/Query/Vector/Opensearch/Neural.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(
7272
string $field = self::DEFAULT_EMBEDDING_FIELD,
7373
?string $name = null,
7474
float $boost = QueryInterface::DEFAULT_BOOST_VALUE,
75-
string $modelId = null
75+
?string $modelId = null
7676
) {
7777
$this->field = $field;
7878
$this->queryText = $queryText;

0 commit comments

Comments
 (0)