From ae4ce2ba65e457e7c5eebc2491cdb355a8709123 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Tue, 22 Apr 2025 22:17:34 +0200 Subject: [PATCH] fix(types): make types more strict in config files --- config/cache.php | 2 +- config/database.php | 2 +- config/session.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cache.php b/config/cache.php index 753d24e527..6ab9c78955 100644 --- a/config/cache.php +++ b/config/cache.php @@ -102,5 +102,5 @@ return [ | */ - 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel'), '_').'_cache_'), ]; diff --git a/config/database.php b/config/database.php index 4af5e0bb71..da6e829fe7 100644 --- a/config/database.php +++ b/config/database.php @@ -145,7 +145,7 @@ return [ 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), - 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + 'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel'), '_').'_database_'), 'persistent' => env('REDIS_PERSISTENT', false), ], diff --git a/config/session.php b/config/session.php index bda9b7790c..8ac1858799 100644 --- a/config/session.php +++ b/config/session.php @@ -130,7 +130,7 @@ return [ 'cookie' => env( 'SESSION_COOKIE', - Str::slug(env('APP_NAME', 'laravel'), '_').'_session', + Str::slug((string) env('APP_NAME', 'laravel'), '_').'_session', ), /*