Skip to content

Commit be83e04

Browse files
authored
Merge pull request #22 from hypervel/fix/fix-environment-debug-env
fix: fix type casting for debug property in Environment
2 parents 9657be4 + d69f7ca commit be83e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/src/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(
2525
protected ?bool $debug = null
2626
) {
2727
$this->env = $env ?? env('APP_ENV', 'local');
28-
$this->debug = $debug ?? env('APP_DEBUG', true);
28+
$this->debug = $debug ?? (bool) env('APP_DEBUG', false);
2929
}
3030

3131
public function __call($method, $parameters = [])

0 commit comments

Comments
 (0)