mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00:00
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
5ff1d431aa
commit
ae1533e312
3 changed files with 6 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue