Skip to content

Commit c0dc258

Browse files
committed
use isset
1 parent 9dee495 commit c0dc258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ public function isProduction()
696696
*/
697697
public function detectEnvironment(Closure $callback)
698698
{
699-
$args = $this->runningInConsole() && $_SERVER['argv']
699+
$args = $this->runningInConsole() && isset($_SERVER['argv'])
700700
? $_SERVER['argv']
701701
: null;
702702

0 commit comments

Comments
 (0)