Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
@@ -401,7 +401,7 @@ class ConfigFileManager
|
||||
private function loadConfigFile(string $filepath): array
|
||||
{
|
||||
if (file_exists($filepath)) {
|
||||
$config = include($filepath);
|
||||
$config = include $filepath;
|
||||
|
||||
if (!is_array($config)) {
|
||||
throw new ConfigFileException('Error loading config file ' . $filepath);
|
||||
|
||||
Reference in New Issue
Block a user