Following code generates an editor warning for not using $key
in the code. Any idea how to avoid this warning? Is there any similar check done by the PHP
parses too?
array_walk($services, function(&$value, $key) {
$value = str_replace('xxx', '', $value);
});