diff --git a/config/app.php b/config/app.php index 29d047cb9..8e05523af 100644 --- a/config/app.php +++ b/config/app.php @@ -39,7 +39,7 @@ | */ - 'debug' => env('APP_DEBUG', false), + 'debug' => (bool) env('APP_DEBUG', false), /* |-------------------------------------------------------------------------- diff --git a/config/database.php b/config/database.php index 720ee6fa9..3553cc98b 100644 --- a/config/database.php +++ b/config/database.php @@ -121,7 +121,7 @@ 'collation' => env('DB_COLLATION', 'utf8_unicode_ci'), 'prefix' => env('DB_PREFIX', ''), 'timezone' => env('DB_TIMEZONE', '+00:00'), - 'strict' => env('DB_STRICT_MODE', true), + 'strict' => (bool) env('DB_STRICT_MODE', true), ], ], @@ -154,7 +154,7 @@ 'client' => 'phpredis', - 'cluster' => env('REDIS_CLUSTER', false), + 'cluster' => (bool) env('REDIS_CLUSTER', false), 'default' => [ 'host' => env('REDIS_HOST', '127.0.0.1'), diff --git a/config/routes.php b/config/routes.php index 8ed75d595..6f2e9c06a 100644 --- a/config/routes.php +++ b/config/routes.php @@ -35,7 +35,7 @@ | Set this to true if you don't want responses to be cached in intermediate | proxies, but only in the end user's browsers instead. */ - 'private_only' => env('CACHE_CONTROL_PRIVATE', false), + 'private_only' => (bool) env('CACHE_CONTROL_PRIVATE', false), ], ]; diff --git a/config/sentry.php b/config/sentry.php index 5795a23eb..fec23bb93 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -34,7 +34,7 @@ 'tracing' => [ // Trace queue jobs as their own transactions - 'queue_job_transactions' => env('SENTRY_TRACE_QUEUE_ENABLED', false), + 'queue_job_transactions' => (bool) env('SENTRY_TRACE_QUEUE_ENABLED', false), // Capture queue jobs as spans when executed on the sync driver 'queue_jobs' => true, @@ -53,7 +53,7 @@ ], // @see: https://docs.sentry.io/platforms/php/configuration/options/#send-default-pii - 'send_default_pii' => env('SENTRY_SEND_DEFAULT_PII', false), + 'send_default_pii' => (bool) env('SENTRY_SEND_DEFAULT_PII', false), 'traces_sample_rate' => (float) (env('SENTRY_TRACES_SAMPLE_RATE', 0.0)),