Skip to content

Commit

Permalink
fix(config): cast redis port into int (#7067)
Browse files Browse the repository at this point in the history
  • Loading branch information
radenui committed Dec 22, 2023
1 parent f81f3a2 commit deaecec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'port' => (int) env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', env('REDIS_DATABASE', 0)),
],

'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'port' => (int) env('REDIS_PORT', 6379),
'database' => env('REDIS_CACHE_DB', 1),
],

Expand Down

0 comments on commit deaecec

Please sign in to comment.