File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/GraphQlResolverCache/Model/Resolver/Result/ValueProcessor/FlagSetter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Enumerable implements FlagSetterInterface
1919 */
2020 public function setFlagOnValue (&$ value , string $ flagValue ): void
2121 {
22- foreach ($ value as $ key => $ data ) {
22+ foreach (array_keys ( $ value) as $ key ) {
2323 $ value [$ key ][ValueProcessorInterface::VALUE_HYDRATION_REFERENCE_KEY ] = [
2424 'cacheKey ' => $ flagValue ,
2525 'index ' => $ key
@@ -32,7 +32,7 @@ public function setFlagOnValue(&$value, string $flagValue): void
3232 */
3333 public function unsetFlagFromValue (&$ value ): void
3434 {
35- foreach ($ value as $ key => $ data ) {
35+ foreach (array_keys ( $ value) as $ key ) {
3636 unset($ value [$ key ][ValueProcessorInterface::VALUE_HYDRATION_REFERENCE_KEY ]);
3737 }
3838 }
You can’t perform that action at this time.
0 commit comments