Skip to content

Commit a60f4cc

Browse files
2.0-upgrade ecs fix
1 parent a970a7c commit a60f4cc

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

src/Api/DataProvider/ProductCollectionDataProvider.php

+7-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public function __construct(
2929
) {
3030
}
3131

32-
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
32+
public function provide(
33+
Operation $operation,
34+
array $uriVariables = [],
35+
array $context = []
36+
): object|array|null
3337
{
3438
Assert::isInstanceOf($operation, GetCollection::class);
3539

@@ -40,7 +44,7 @@ public function provide(Operation $operation, array $uriVariables = [], array $c
4044
$products = $this->shopProductsFinder->find($data);
4145

4246
/** @var array $result */
43-
$result = [
47+
$result = [
4448
'items' => iterator_to_array($products->getCurrentPageResults()),
4549
'facets' => $facets,
4650
'pagination' => [
@@ -55,4 +59,4 @@ public function provide(Operation $operation, array $uriVariables = [], array $c
5559

5660
return $result;
5761
}
58-
}
62+
}

src/Controller/Action/Shop/SiteWideProductsSearchAction.php

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use BitBag\SyliusElasticsearchPlugin\Form\Type\SearchType;
1616
use BitBag\SyliusElasticsearchPlugin\Model\Search;
17-
use BitBag\SyliusElasticsearchPlugin\Model\SearchBox;
1817
use Symfony\Component\HttpFoundation\Request;
1918
use Symfony\Component\HttpFoundation\Response;
2019

src/Twig/Component/SearchFormComponent.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use BitBag\SyliusElasticsearchPlugin\Form\Type\SearchType;
88
use Symfony\Component\Form\FormFactoryInterface;
9-
use Symfony\Component\Form\FormInterface;
109
use Symfony\Component\Form\FormView;
1110
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1211
use Symfony\UX\TwigComponent\Attribute\ExposeInTemplate;

tests/Application/config/bundles.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
$bundles = [
46
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
57
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],

0 commit comments

Comments
 (0)