Skip to content

Commit 5d976c5

Browse files
glo17680faizan-shk
authored andcommitted
AC-7422:Incompatible issues fix for PHP8.2
1 parent de3bd63 commit 5d976c5

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query/Search.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ private function buildSearchCriteria(array $args, ResolveInfo $info): SearchCrit
186186
{
187187
$productFields = (array)$info->getFieldSelection(1);
188188
$includeAggregations = isset($productFields['filters']) || isset($productFields['aggregations']);
189-
$processedArgs = $this->argsSelection->process((string) $info->fieldName, $args);
189+
$fieldName = $info->fieldName ?? "";
190+
$processedArgs = $this->argsSelection->process((string) $fieldName, $args);
190191
$searchCriteria = $this->searchCriteriaBuilder->build($processedArgs, $includeAggregations);
191192

192193
return $searchCriteria;

0 commit comments

Comments
 (0)