mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
VersionInfo: make static methods more constant-like
if we could have class constants declared at runtime, these would be constant.
This commit is contained in:
@ -150,7 +150,7 @@ class AutoUpdater{
|
||||
if($this->updateInfo === null){
|
||||
return;
|
||||
}
|
||||
$currentVersion = VersionInfo::getVersionObj();
|
||||
$currentVersion = VersionInfo::VERSION();
|
||||
try{
|
||||
$newVersion = new VersionString($this->updateInfo->base_version, $this->updateInfo->is_dev, $this->updateInfo->build);
|
||||
}catch(\InvalidArgumentException $e){
|
||||
|
Reference in New Issue
Block a user