Skip to content

Commit

Permalink
Fix core:status warning (#5090)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Mar 9, 2022
1 parent b1f97f4 commit 25a6cf7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Commands/core/EditCommands.php
Expand Up @@ -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
Expand Down

0 comments on commit 25a6cf7

Please sign in to comment.