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:
Dylan K. Taylor 2020-04-15 12:18:22 +01:00
parent 1755b25808
commit 27b2710c56

View File

@ -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: