mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 07:18:39 +00:00
Minor bug fixes
This commit is contained in:
parent
6255bd9ab2
commit
907c7b6f49
|
|
@ -67,10 +67,6 @@ class FunctionParser
|
||||||
|
|
||||||
public function setStatic(bool $static) {
|
public function setStatic(bool $static) {
|
||||||
$this->isStatic = $static;
|
$this->isStatic = $static;
|
||||||
|
|
||||||
if($this->isStatic) {
|
|
||||||
$this->isConst = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isStatic() : bool
|
public function isStatic() : bool
|
||||||
|
|
@ -142,5 +138,7 @@ class FunctionParser
|
||||||
$member .= rtrim($parameters, ', ') . ') ';
|
$member .= rtrim($parameters, ', ') . ') ';
|
||||||
$member .= ($this->return ?? '') . PHP_EOL;
|
$member .= ($this->return ?? '') . PHP_EOL;
|
||||||
$member .= '{' . PHP_EOL . $this->body . PHP_EOL . '}';
|
$member .= '{' . PHP_EOL . $this->body . PHP_EOL . '}';
|
||||||
|
|
||||||
|
return $member;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user