load some non-class constants with composer

this makes PHPStan happy and also makes working with PM code externally less of a pain in the ass.
This commit is contained in:
Dylan K. Taylor
2019-11-05 11:16:22 +00:00
parent 5edff79f5f
commit 4cb0b319c0
4 changed files with 43 additions and 7 deletions

View File

@ -21,6 +21,14 @@
namespace pocketmine;
// composer autoload doesn't use require_once and also pthreads can inherit things
// TODO: drop this file and use a final class with constants
if(defined('pocketmine\_VERSION_INFO_INCLUDED')){
return;
}
const _VERSION_INFO_INCLUDED = true;
const NAME = "PocketMine-MP";
const BASE_VERSION = "3.9.8";
const IS_DEVELOPMENT_BUILD = true;