Skip to content

Commit

Permalink
fix: migrations not working on install due to debug mode not being bo…
Browse files Browse the repository at this point in the history
…olean
  • Loading branch information
Wachizungu committed Nov 23, 2024
1 parent 8d953cd commit 041028e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/app_local.example.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Development Mode:
* true: Errors and warnings shown.
*/
'debug' => filter_var(env('DEBUG', 0), FILTER_VALIDATE_INT, array("options" => array("min_range"=>0, "max_range"=>1))),
'debug' => filter_var(env('DEBUG', false), FILTER_VALIDATE_BOOLEAN),

/*
* Security and encryption configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ protected function generateSettingsConfiguration()
'description' => __('The debug level of the instance'),
'default' => 0,
'options' => [
0 => __('Debug Off'),
1 => __('Debug On'),
false => __('Debug Off'),
true => __('Debug On'),
],
'test' => function ($value, $setting, $validator) {
$validator->range('value', [0, 1]);
Expand Down

0 comments on commit 041028e

Please sign in to comment.