fix: [setting:cerebrate] Enforce debug setting to be true or false

dependabot/npm_and_yarn/webroot/theme/braces-3.0.3
Sami Mokaddem 2024-04-09 12:20:15 +02:00
parent d4eaeed045
commit c958f24190
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 3 deletions

View File

@ -316,9 +316,8 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
'description' => __('The debug level of the instance'),
'default' => 0,
'options' => [
0 => __('Debug Off'),
1 => __('Debug On'),
2 => __('Debug On + SQL Dump'),
false => __('Debug Off'),
true => __('Debug On'),
],
'test' => function ($value, $setting, $validator) {
$validator->range('value', [0, 2]);