chg: [settings:cerebrate] Improved check before saving debug level
parent
480e4a65fe
commit
26c038b25b
|
@ -321,7 +321,7 @@ class CerebrateSettingsProvider extends BaseSettingsProvider
|
||||||
2 => __('Debug On + SQL Dump'),
|
2 => __('Debug On + SQL Dump'),
|
||||||
],
|
],
|
||||||
'test' => function ($value, $setting, $validator) {
|
'test' => function ($value, $setting, $validator) {
|
||||||
$validator->range('value', [0, 3]);
|
$validator->range('value', [0, 2]);
|
||||||
return testValidator($value, $validator);
|
return testValidator($value, $validator);
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue