mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Remove _PHPSTAN_ANALYSIS constant
we don't need this anymore since PHPStan is able to intelligently decide whether to autoload a file or not.
This commit is contained in:
parent
dea75a0687
commit
5920b0ba40
@ -24,7 +24,6 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\build\make_release;
|
namespace pocketmine\build\make_release;
|
||||||
|
|
||||||
use pocketmine\utils\VersionString;
|
use pocketmine\utils\VersionString;
|
||||||
use function defined;
|
|
||||||
use function dirname;
|
use function dirname;
|
||||||
use function fgets;
|
use function fgets;
|
||||||
use function file_get_contents;
|
use function file_get_contents;
|
||||||
@ -86,6 +85,4 @@ function main(array $argv) : void{
|
|||||||
system('git push origin HEAD ' . $currentVer->getBaseVersion());
|
system('git push origin HEAD ' . $currentVer->getBaseVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined('pocketmine\_PHPSTAN_ANALYSIS')){
|
main($argv);
|
||||||
main($argv);
|
|
||||||
}
|
|
||||||
|
@ -26,7 +26,6 @@ namespace pocketmine\build\server_phar;
|
|||||||
use pocketmine\utils\Git;
|
use pocketmine\utils\Git;
|
||||||
use function array_map;
|
use function array_map;
|
||||||
use function count;
|
use function count;
|
||||||
use function defined;
|
|
||||||
use function dirname;
|
use function dirname;
|
||||||
use function file_exists;
|
use function file_exists;
|
||||||
use function getcwd;
|
use function getcwd;
|
||||||
@ -174,6 +173,4 @@ STUB
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined('pocketmine\_PHPSTAN_ANALYSIS')){
|
main();
|
||||||
main();
|
|
||||||
}
|
|
||||||
|
@ -299,7 +299,5 @@ namespace pocketmine {
|
|||||||
exit($exitCode);
|
exit($exitCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!defined('pocketmine\_PHPSTAN_ANALYSIS')){
|
\pocketmine\server();
|
||||||
\pocketmine\server();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
define('pocketmine\_PHPSTAN_ANALYSIS', true);
|
|
||||||
|
|
||||||
if(!defined('LEVELDB_ZLIB_RAW_COMPRESSION')){
|
if(!defined('LEVELDB_ZLIB_RAW_COMPRESSION')){
|
||||||
//leveldb might not be loaded
|
//leveldb might not be loaded
|
||||||
define('LEVELDB_ZLIB_RAW_COMPRESSION', 4);
|
define('LEVELDB_ZLIB_RAW_COMPRESSION', 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user