Skip to content

Commit a9b21e7

Browse files
committed
fixes deprecated nullable param and a plugin param
1 parent 7633acb commit a9b21e7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Model/Indexer/ProductObserver.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public function afterDelete(ProductResource $productResource, ProductResource $r
6464

6565
/**
6666
* @param Action $subject
67-
* @param Action|null $result
67+
* @param Action $result
6868
* @param array $productIds
6969
*
7070
* @return Action
7171
*/
72-
public function afterUpdateAttributes(Action $subject, ?Action $result = null, $productIds)
72+
public function afterUpdateAttributes(Action $subject, Action $result, $productIds)
7373
{
7474
if (!$this->indexer->isScheduled()) {
7575
$this->indexer->reindexList(array_unique($productIds));
@@ -80,12 +80,12 @@ public function afterUpdateAttributes(Action $subject, ?Action $result = null, $
8080

8181
/**
8282
* @param Action $subject
83-
* @param Action|null $result
83+
* @param Action $result
8484
* @param array $productIds
8585
*
8686
* @return mixed
8787
*/
88-
public function afterUpdateWebsites(Action $subject, ?Action $result = null, array $productIds)
88+
public function afterUpdateWebsites(Action $subject, Action $result, array $productIds)
8989
{
9090
if (!$this->indexer->isScheduled()) {
9191
$this->indexer->reindexList(array_unique($productIds));

Service/AlgoliaConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public function copyQueryRules(IndexOptionsInterface $fromIndexOptions, IndexOpt
628628
* @throws AlgoliaException
629629
* @throws NoSuchEntityException
630630
*/
631-
public function searchRules(IndexOptionsInterface $indexOptions, array$searchRulesParams = null)
631+
public function searchRules(IndexOptionsInterface $indexOptions, ?array $searchRulesParams = null)
632632
{
633633
$indexName = $indexOptions->getIndexName();
634634

0 commit comments

Comments
 (0)