diff --git a/src/support/src/Environment.php b/src/support/src/Environment.php index ef58ac0d8..8a3fff9b4 100644 --- a/src/support/src/Environment.php +++ b/src/support/src/Environment.php @@ -25,7 +25,7 @@ public function __construct( protected ?bool $debug = null ) { $this->env = $env ?? env('APP_ENV', 'local'); - $this->debug = $debug ?? env('APP_DEBUG', true); + $this->debug = $debug ?? (bool) env('APP_DEBUG', false); } public function __call($method, $parameters = [])