mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Replaced array() with []
This commit is contained in:
@@ -63,7 +63,7 @@ class PluginDescription{
|
||||
$this->name = str_replace(" ", "_", $this->name);
|
||||
$this->version = $plugin["version"];
|
||||
$this->main = $plugin["main"];
|
||||
$this->api = !is_array($plugin["api"]) ? array($plugin["api"]) : $plugin["api"];
|
||||
$this->api = !is_array($plugin["api"]) ? [$plugin["api"]] : $plugin["api"];
|
||||
if(stripos($this->main, "pocketmine\\") === 0){
|
||||
trigger_error("Invalid PluginDescription main, cannot start within the PocketMine namespace", E_USER_ERROR);
|
||||
|
||||
|
@@ -242,7 +242,7 @@ class PluginManager{
|
||||
if(isset($softDependencies[$before])){
|
||||
$softDependencies[$before][] = $name;
|
||||
}else{
|
||||
$softDependencies[$before] = array($name);
|
||||
$softDependencies[$before] = [$name];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user