mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
bootstrap: add PhpDoc to critical_error to make phpstan happy
it wants phpdoc or typehints, and we can't provide typehints because bootstrap needs to be compatible with old PHP versions.
This commit is contained in:
parent
6dcd2a4ece
commit
1192b8bdf1
@ -36,6 +36,10 @@ namespace pocketmine {
|
||||
|
||||
const MIN_PHP_VERSION = "7.2.0";
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
* @return void
|
||||
*/
|
||||
function critical_error($message){
|
||||
echo "[ERROR] $message" . PHP_EOL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user