diff --git a/src/Commands/core/EditCommands.php b/src/Commands/core/EditCommands.php index b827cd4e07..15ad1eb6cd 100644 --- a/src/Commands/core/EditCommands.php +++ b/src/Commands/core/EditCommands.php @@ -121,8 +121,11 @@ public function load($headers = true): array public static function phpIniFiles(): array { - $paths[] = php_ini_loaded_file(); - return $paths; + $return = []; + if ($file = php_ini_loaded_file()) { + $return = [$file]; + } + return $return; } public function bashFiles(): array