fix: [setting:cerebrate] Enforce debug setting to be true or false
parent
d4eaeed045
commit
c958f24190
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue