mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
and more typehints
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user