Skip to content

Commit ce4fd71

Browse files
committed
use isset
1 parent 75a12d7 commit ce4fd71

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
@@ -759,7 +759,7 @@ public function isProduction()
759759
*/
760760
public function detectEnvironment(Closure $callback)
761761
{
762-
$args = $this->runningInConsole() && $_SERVER['argv']
762+
$args = $this->runningInConsole() && isset($_SERVER['argv'])
763763
? $_SERVER['argv']
764764
: null;
765765

0 commit comments

Comments
 (0)