mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
PharPluginLoader: remove useless instanceof, offset is always PharFileInfo at this point
This commit is contained in:
parent
0e35ee8cb7
commit
dba14c9f08
@ -57,10 +57,7 @@ class PharPluginLoader implements PluginLoader{
|
||||
public function getPluginDescription(string $file) : ?PluginDescription{
|
||||
$phar = new \Phar($file);
|
||||
if(isset($phar["plugin.yml"])){
|
||||
$pluginYml = $phar["plugin.yml"];
|
||||
if($pluginYml instanceof \PharFileInfo){
|
||||
return new PluginDescription($pluginYml->getContent());
|
||||
}
|
||||
return new PluginDescription($phar["plugin.yml"]->getContent());
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user