From d363521de4aa2cb26d5edb9854277708869df0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9E=A8=E7=85=8A?= Date: Fri, 28 Feb 2020 10:51:21 +0800 Subject: [PATCH] compatible php7.2 The `each` function has been DEPRECATED as of PHP 7.2.0. Replce by `foreach` --- src/main/php/LoggerReflectionUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;