mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
and more typehints
This commit is contained in:
@ -45,7 +45,7 @@ class SetupWizard{
|
||||
|
||||
}
|
||||
|
||||
public function run(){
|
||||
public function run() : bool{
|
||||
$this->message("PocketMine-MP set-up wizard");
|
||||
|
||||
$langs = BaseLang::getLanguageList();
|
||||
@ -91,7 +91,7 @@ class SetupWizard{
|
||||
return true;
|
||||
}
|
||||
|
||||
private function showLicense(){
|
||||
private function showLicense() : bool{
|
||||
$this->message($this->lang->get("welcome_to_pocketmine"));
|
||||
echo <<<LICENSE
|
||||
|
||||
@ -244,7 +244,7 @@ LICENSE;
|
||||
$this->writeLine("[!] " . $message);
|
||||
}
|
||||
|
||||
private function getInput(string $message, string $default = "", string $options = ""){
|
||||
private function getInput(string $message, string $default = "", string $options = "") : string{
|
||||
$message = "[?] " . $message;
|
||||
|
||||
if($options !== "" or $default !== ""){
|
||||
|
Reference in New Issue
Block a user