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:
Dylan K. Taylor
2021-08-16 16:37:36 +01:00
parent 5da90b9530
commit a012e7ccc0
10 changed files with 15 additions and 15 deletions

View File

@ -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){