mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Merge branch 'stable'
This commit is contained in:
commit
05a450df87
@ -38,6 +38,10 @@ namespace pocketmine {
|
|||||||
|
|
||||||
const MIN_PHP_VERSION = "7.2.0";
|
const MIN_PHP_VERSION = "7.2.0";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $message
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function critical_error($message){
|
function critical_error($message){
|
||||||
echo "[ERROR] $message" . PHP_EOL;
|
echo "[ERROR] $message" . PHP_EOL;
|
||||||
}
|
}
|
||||||
@ -125,6 +129,10 @@ namespace pocketmine {
|
|||||||
return $messages;
|
return $messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Logger $logger
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function emit_performance_warnings(\Logger $logger){
|
function emit_performance_warnings(\Logger $logger){
|
||||||
if(extension_loaded("xdebug")){
|
if(extension_loaded("xdebug")){
|
||||||
$logger->warning("Xdebug extension is enabled. This has a major impact on performance.");
|
$logger->warning("Xdebug extension is enabled. This has a major impact on performance.");
|
||||||
@ -137,6 +145,9 @@ namespace pocketmine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function set_ini_entries(){
|
function set_ini_entries(){
|
||||||
ini_set("allow_url_fopen", '1');
|
ini_set("allow_url_fopen", '1');
|
||||||
ini_set("display_errors", '1');
|
ini_set("display_errors", '1');
|
||||||
@ -145,6 +156,9 @@ namespace pocketmine {
|
|||||||
ini_set('assert.exception', '1');
|
ini_set('assert.exception', '1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function server(){
|
function server(){
|
||||||
if(count($messages = check_platform_dependencies()) > 0){
|
if(count($messages = check_platform_dependencies()) > 0){
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
|
@ -5,8 +5,8 @@ parameters:
|
|||||||
checkMissingTypehints: true
|
checkMissingTypehints: true
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
#- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
|
- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
|
||||||
#- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
|
- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
|
||||||
#- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
|
#- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
|
||||||
#- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
|
#- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
|
||||||
- PHPStan\Rules\Properties\MissingPropertyTypehintRule
|
- PHPStan\Rules\Properties\MissingPropertyTypehintRule
|
||||||
|
Loading…
x
Reference in New Issue
Block a user