Skip to content

Commit d0353b8

Browse files
authored
Add bound check to env resolving (#39434)
1 parent b3329fa commit d0353b8

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
@@ -628,7 +628,7 @@ public function runningInConsole()
628628
*/
629629
public function runningUnitTests()
630630
{
631-
return $this['env'] === 'testing';
631+
return $this->bound('env') && $this['env'] === 'testing';
632632
}
633633

634634
/**

0 commit comments

Comments
 (0)