Skip to content

Commit 4f7497c

Browse files
author
Oleksandr Iegorov
committed
MC-29026: GraphQL returns filters with some data if you making request to not existing or empty category
1 parent 669e717 commit 4f7497c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/SwatchesGraphQl/Plugin/Filters/DataProviderPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public function __construct(
6161
* phpcs:disable Generic.Metrics.NestingLevel
6262
*/
6363
public function aroundGetData(
64-
Filters $subject,
64+
Flters $subject,
6565
\Closure $proceed,
6666
string $layerType,
67-
array $attributesToFilter = null
67+
$attributesToFilter = null
6868
) : array {
6969
$swatchFilters = [];
7070
/** @var AbstractFilter $filter */

0 commit comments

Comments
 (0)