diff --git a/src/main/php/LoggerReflectionUtils.php b/src/main/php/LoggerReflectionUtils.php index e0461856..a4ce4eb2 100644 --- a/src/main/php/LoggerReflectionUtils.php +++ b/src/main/php/LoggerReflectionUtils.php @@ -68,7 +68,7 @@ public static function setPropertiesByObject($obj, $properties, $prefix) { public function setProperties($properties, $prefix) { $len = strlen($prefix); reset($properties); - while(list($key,) = each($properties)) { + foreach ($properties as $key => $value) { if(strpos($key, $prefix) === 0) { if(strpos($key, '.', ($len + 1)) > 0) { continue;