mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Config: make phpstan happy for load()
currently this will never be reached if the regular exception handler has been set, but it might not be set if the class is used on its own.
This commit is contained in:
parent
1755b25808
commit
27b2710c56
@ -172,6 +172,10 @@ class Config{
|
||||
}else{
|
||||
if($this->correct){
|
||||
$content = file_get_contents($this->file);
|
||||
if($content === false){
|
||||
$this->correct = false;
|
||||
return false;
|
||||
}
|
||||
$config = null;
|
||||
switch($this->type){
|
||||
case Config::PROPERTIES:
|
||||
|
Loading…
x
Reference in New Issue
Block a user