From 69bca36bca8714803cd4ddb0fd567e77e13661cb Mon Sep 17 00:00:00 2001 From: Saya <379924+chu121su12@users.noreply.github.com> Date: Tue, 14 May 2024 17:01:16 +0800 Subject: [PATCH] Update bootstrap.php --- bin/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/bootstrap.php b/bin/bootstrap.php index e870b8a0f..ea5f19599 100644 --- a/bin/bootstrap.php +++ b/bin/bootstrap.php @@ -51,6 +51,10 @@ function dd(...$vars) exit(10); } +if (($_ENV['APP_ENV'] ?? 'production') === 'production') { + error_reporting(~E_ALL); +} + require_once $autoload_file; return $basePath;