Skip to content

A free open source IT asset/license management system

Cast the DB_PORT to integer

snipeb9908d56659c
diff --git a/config/database.php b/config/database.php
index 06dde25325..de79d97d7e 100755
--- a/config/database.php
+++ b/config/database.php
@@ -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', ''),