mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-10 07:49:42 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Logger $logger
|
||||
* @return void
|
||||
*/
|
||||
function emit_performance_warnings(\Logger $logger){
|
||||
if(extension_loaded("xdebug")){
|
||||
$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(){
|
||||
ini_set("allow_url_fopen", '1');
|
||||
ini_set("display_errors", '1');
|
||||
@ -144,6 +151,9 @@ namespace pocketmine {
|
||||
ini_set('assert.exception', '1');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
function server(){
|
||||
if(count($messages = check_platform_dependencies()) > 0){
|
||||
echo PHP_EOL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user