mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +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";
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user