File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
app/code/Magento/GraphQlResolverCache/Model/Resolver/Result Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -139,16 +139,14 @@ private function hydrateData(array &$value): void
139
139
if (isset ($ reference ['cacheKey ' ]) && isset ($ reference ['index ' ])) {
140
140
$ cacheKey = $ reference ['cacheKey ' ];
141
141
$ index = $ reference ['index ' ];
142
- if ($ cacheKey ) {
143
- if (isset ($ this ->processedValues [$ cacheKey ][$ index ])) {
144
- $ value = $ this ->processedValues [$ cacheKey ][$ index ];
145
- } elseif (isset ($ this ->hydrators [$ cacheKey ])
146
- && $ this ->hydrators [$ cacheKey ] instanceof HydratorInterface
147
- ) {
148
- $ this ->hydrators [$ cacheKey ]->hydrate ($ value );
149
- $ this ->defaultFlagSetter ->unsetFlagFromValue ($ value );
150
- $ this ->processedValues [$ cacheKey ][$ index ] = $ value ;
151
- }
142
+ if (isset ($ this ->processedValues [$ cacheKey ][$ index ])) {
143
+ $ value = $ this ->processedValues [$ cacheKey ][$ index ];
144
+ } elseif (isset ($ this ->hydrators [$ cacheKey ])
145
+ && $ this ->hydrators [$ cacheKey ] instanceof HydratorInterface
146
+ ) {
147
+ $ this ->hydrators [$ cacheKey ]->hydrate ($ value );
148
+ $ this ->defaultFlagSetter ->unsetFlagFromValue ($ value );
149
+ $ this ->processedValues [$ cacheKey ][$ index ] = $ value ;
152
150
}
153
151
}
154
152
}
You can’t perform that action at this time.
0 commit comments