mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +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:
@ -60,7 +60,7 @@ function main(array $argv) : void{
|
||||
if(isset($argv[1])){
|
||||
$currentVer = new VersionString($argv[1]);
|
||||
}else{
|
||||
$currentVer = VersionInfo::getVersionObj();
|
||||
$currentVer = VersionInfo::VERSION();
|
||||
}
|
||||
$nextVer = new VersionString(sprintf(
|
||||
"%u.%u.%u",
|
||||
|
Reference in New Issue
Block a user