Skip to content

Commit 42ba5d8

Browse files
committed
Replaced array_walk() with foreach().
1 parent 39901df commit 42ba5d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Processor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ private function processParams(array $config, array $expectedParams, array $actu
104104
if (!empty($config['env-map'])) {
105105
// Hydrate env-map from dist file
106106
if ('auto' === $config['env-map']) {
107-
array_walk($expectedParams, function($v, $k) use (&$envMap) {
108-
$envMap[$k] = strtoupper($k);
109-
});
107+
foreach ($expectedParams as $key => $value) {
108+
$envMap[$key] = strtoupper($key);
109+
}
110110
} else {
111111
$envMap = (array) $config['env-map'];
112112
}

0 commit comments

Comments
 (0)