From 907c7b6f4962317b593ace3a475b773a1d68daf1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 28 Mar 2016 14:02:07 +0200 Subject: [PATCH] Minor bug fixes --- Utils/Parser/Php/FunctionParser.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Utils/Parser/Php/FunctionParser.php b/Utils/Parser/Php/FunctionParser.php index d5978274b..e24eccd09 100644 --- a/Utils/Parser/Php/FunctionParser.php +++ b/Utils/Parser/Php/FunctionParser.php @@ -67,10 +67,6 @@ class FunctionParser public function setStatic(bool $static) { $this->isStatic = $static; - - if($this->isStatic) { - $this->isConst = false; - } } public function isStatic() : bool @@ -142,5 +138,7 @@ class FunctionParser $member .= rtrim($parameters, ', ') . ') '; $member .= ($this->return ?? '') . PHP_EOL; $member .= '{' . PHP_EOL . $this->body . PHP_EOL . '}'; + + return $member; } } \ No newline at end of file