We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb08ee1 commit 92adeadCopy full SHA for 92adead
app/code/Magento/EavGraphQl/Model/Resolver/Cache/CustomAttributeMetadataIdentity.php
@@ -23,11 +23,13 @@ public function getIdentities(array $resolvedData): array
23
$identities = [EavAttribute::CACHE_TAG];
24
if (isset($resolvedData['items']) && !empty($resolvedData['items'])) {
25
foreach ($resolvedData['items'] as $item) {
26
- $identities[] = sprintf(
27
- "%s_%s",
28
- EavAttribute::CACHE_TAG,
29
- $item['attribute_code']
30
- );
+ if (is_array($item)) {
+ $identities[] = sprintf(
+ "%s_%s",
+ EavAttribute::CACHE_TAG,
+ $item['attribute_code']
31
+ );
32
+ }
33
}
34
} else {
35
return [];
0 commit comments