Add (bool) type casts to all boolean env() calls across config files

This commit is contained in:
root
2026-05-26 16:40:52 +02:00
parent f5c21e36f1
commit 93e6f6a273
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ return [
/*
* If set to false, no activities will be saved to the database.
*/
'enabled' => env('ACTIVITYLOG_ENABLED', true),
'enabled' => (bool) env('ACTIVITYLOG_ENABLED', true),
/*
* When the clean command is executed, all recording activities older than
@@ -59,7 +59,7 @@ return [
* buffer is flushed.
*/
'buffer' => [
'enabled' => env('ACTIVITYLOG_BUFFER_ENABLED', false),
'enabled' => (bool) env('ACTIVITYLOG_BUFFER_ENABLED', false),
],
/*