From c0dc258eef3ec1593b43a0205aa4da003d424fc3 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 12 Nov 2024 16:18:51 -0600 Subject: [PATCH] use isset --- src/Illuminate/Foundation/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index aa65a701b311..32904ce73f84 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -696,7 +696,7 @@ public function isProduction() */ public function detectEnvironment(Closure $callback) { - $args = $this->runningInConsole() && $_SERVER['argv'] + $args = $this->runningInConsole() && isset($_SERVER['argv']) ? $_SERVER['argv'] : null;