From 25a6cf7b400a21ff3dd7027fe952daaad4746d3d Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Wed, 9 Mar 2022 14:21:50 -0500 Subject: [PATCH] Fix core:status warning (#5090) --- src/Commands/core/EditCommands.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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