Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -105,6 +105,6 @@
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel'), '_').'_cache_'),
];

View File

@ -490,7 +490,7 @@
*/
'restricted_ip_addresses' => array_merge(
['127.0.0.1', 'localhost', '0.0.0.0'],
explode(',', env('RESTRICTED_IP_ADDRESSES', ''))
explode(',', (string) env('RESTRICTED_IP_ADDRESSES', ''))
),
/*

View File

@ -37,7 +37,7 @@
'sqlite' => [
'driver' => 'sqlite',
'database' => storage_path(env('DB_DATABASE', 'database.sqlite')),
'database' => storage_path((string) env('DB_DATABASE', 'database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
],
@ -124,7 +124,7 @@
'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_'),
],
'default' => [

View File

@ -128,7 +128,7 @@
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
Str::slug((string) env('APP_NAME', 'laravel'), '_').'_session'
),
/*