Make pocketmine\PATH and pocketmine\RESOURCE_PATH always available

these are non-dependent on environment, so they can be determined with no external input.
    This fixes 2 PHPStan issues, fixes some code that couldn't run outside of PM, and makes it easier to write code that depends on PM.
This commit is contained in:
Dylan K. Taylor
2020-01-13 10:55:54 +00:00
parent 30f2e75278
commit 651ef500a3
4 changed files with 35 additions and 22 deletions

View File

@ -38,6 +38,7 @@
"": ["src"]
},
"files": [
"src/pocketmine/CoreConstants.php",
"src/pocketmine/GlobalConstants.php",
"src/pocketmine/VersionInfo.php"
]