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'), 'description' => __('The debug level of the instance'),
'default' => 0, 'default' => 0,
'options' => [ 'options' => [
0 => __('Debug Off'), false => __('Debug Off'),
1 => __('Debug On'), true => __('Debug On'),
2 => __('Debug On + SQL Dump'),
], ],
'test' => function ($value, $setting, $validator) { 'test' => function ($value, $setting, $validator) {
$validator->range('value', [0, 2]); $validator->range('value', [0, 2]);