Skip to content

Commit

Permalink
Add bound check to env resolving (#39434)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Nov 1, 2021
1 parent b3329fa commit d0353b8
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 @@ -628,7 +628,7 @@ public function runningInConsole()
*/
public function runningUnitTests()
{
return $this['env'] === 'testing';
return $this->bound('env') && $this['env'] === 'testing';
}

/**
Expand Down

0 comments on commit d0353b8

Please sign in to comment.