From 7137b8a8a4aadf9841e99a0a305c3c39b68051b6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 18 Jan 2020 17:46:25 +0000 Subject: [PATCH] Config: added native void return types to private functions --- src/pocketmine/utils/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/utils/Config.php b/src/pocketmine/utils/Config.php index 9f7859ed8..6110e47d2 100644 --- a/src/pocketmine/utils/Config.php +++ b/src/pocketmine/utils/Config.php @@ -535,7 +535,7 @@ class Config{ /** * @param string $content */ - private function parseList(string $content){ + private function parseList(string $content) : void{ foreach(explode("\n", trim(str_replace("\r\n", "\n", $content))) as $v){ $v = trim($v); if($v == ""){ @@ -565,7 +565,7 @@ class Config{ /** * @param string $content */ - private function parseProperties(string $content){ + private function parseProperties(string $content) : void{ if(preg_match_all('/^\s*([a-zA-Z0-9\-_\.]+)[ \t]*=([^\r\n]*)/um', $content, $matches) > 0){ //false or 0 matches foreach($matches[1] as $i => $k){ $v = trim($matches[2][$i]);