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

@ -81,7 +81,7 @@ class AutoUpdater{
*
* @return bool
*/
public function hasUpdate(){
public function hasUpdate() : bool{
return $this->hasUpdate;
}
@ -164,7 +164,7 @@ class AutoUpdater{
*
* @return string
*/
public function getChannel(){
public function getChannel() : string{
$channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
if($channel !== "stable" and $channel !== "beta" and $channel !== "alpha" and $channel !== "development"){
$channel = "stable";