Minor bug fixes

This commit is contained in:
Dennis Eichhorn 2016-03-28 14:02:07 +02:00
parent 6255bd9ab2
commit 907c7b6f49

View File

@ -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;
}
}