Skip to content

Commit

Permalink
use isset
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 12, 2024
1 parent 75a12d7 commit ce4fd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public function isProduction()
*/
public function detectEnvironment(Closure $callback)
{
$args = $this->runningInConsole() && $_SERVER['argv']
$args = $this->runningInConsole() && isset($_SERVER['argv'])
? $_SERVER['argv']
: null;

Expand Down

0 comments on commit ce4fd71

Please sign in to comment.