Skip to content

Commit

Permalink
fix(DB): added charset to DB Params
Browse files Browse the repository at this point in the history
  • Loading branch information
degoya committed Jan 15, 2024
1 parent a537a4d commit 06be610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Database/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public static function connect(array|null $params = null): Database
'password' => Config::get('db.password', ''),
'database' => Config::get('db.database', ''),
'prefix' => Config::get('db.prefix', ''),
'port' => Config::get('db.port', '')
'port' => Config::get('db.port', ''),
'charset' => Config::get('db.charset', 'utf8mb4')
];

return static::$connection = new Database($params);
Expand Down

0 comments on commit 06be610

Please sign in to comment.