and more typehints

This commit is contained in:
Dylan K. Taylor
2017-07-14 10:56:51 +01:00
parent b9355387da
commit c3b8be3f60
119 changed files with 598 additions and 541 deletions

View File

@ -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 !== ""){