From 2c8c967c06e6b40ace078ee27141a2b948f1bea0 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 9 Apr 2024 12:47:45 +0200 Subject: [PATCH] fix: [app:bootstrap] Automatically cast `debug` setting in bootstrap.php to migrate config --- config/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/bootstrap.php b/config/bootstrap.php index e241b1c..3f00c0b 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -94,6 +94,10 @@ if (file_exists(CONFIG . 'app_local.php')) { $settings = file_get_contents(CONFIG . 'config.json'); $settings = json_decode($settings, true); foreach ($settings as $path => $setting) { + if($path == 'debug') { + Configure::write($path, (bool) $setting); + continue; + } Configure::write($path, $setting); } }