Cast the DB_PORT to integer

This commit is contained in:
snipe
2026-02-11 07:01:03 +00:00
parent cbca420217
commit b9908d5665

View File

@@ -86,7 +86,7 @@ return [
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 3306),
'port' => (int) env('DB_PORT', 3306),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),