mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-10 15:59:39 +00:00
bootstrap: add some @return annotations for phpstan
This commit is contained in:
parent
c85f4256c7
commit
64b5db4bf2
@ -121,6 +121,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.");
|
||||||
@ -136,6 +140,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');
|
||||||
@ -144,6 +151,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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user