Skip to content

Commit 9f1659d

Browse files
authored
PHPCS: fixed php compatibility warning (#4148)
* Rector: CQ - UnusedForeachValueToArrayKeysRector (#1) * Rector: CQ - UnusedForeachValueToArrayKeysRector See Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector * fixes + phpstan See fix at rector: rectorphp/rector-src#6164 * Fixed phpcs compatibility warning * Revert "Rector: CQ - UnusedForeachValueToArrayKeysRector (#1)" This reverts commit 3d7eaf6.
1 parent e438572 commit 9f1659d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/core/Mage/Core/Helper/EnvironmentConfigLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ public function overrideEnvironment(Varien_Simplexml_Config $xmlConfig)
6868

6969
switch ($scope) {
7070
case static::CONFIG_KEY_DEFAULT:
71-
list($_, $_, $section, $group, $field) = $configKeyParts;
71+
list($unused1, $unused2, $section, $group, $field) = $configKeyParts;
7272
$path = $this->buildPath($section, $group, $field);
7373
$xmlConfig->setNode($this->buildNodePath($scope, $path), $value);
7474
break;
7575

7676
case static::CONFIG_KEY_WEBSITES:
7777
case static::CONFIG_KEY_STORES:
78-
list($_, $_, $code, $section, $group, $field) = $configKeyParts;
78+
list($unused1, $unused2, $code, $section, $group, $field) = $configKeyParts;
7979
$path = $this->buildPath($section, $group, $field);
8080
$nodePath = sprintf('%s/%s/%s', strtolower($scope), strtolower($code), $path);
8181
$xmlConfig->setNode($nodePath, $value);

0 commit comments

Comments
 (0)