Ensure no DB driver config falls back to SQLite

This commit is contained in:
Alejandro Celaya 2021-08-07 13:32:59 +02:00
parent 9b75e076b5
commit 92e831175f

View file

@ -21,8 +21,8 @@ return (static function (): array {
'mssql' => '1433',
default => '3306',
};
$resolveConnection = static fn () => match ($driver) {
'sqlite' => [
$resolveConnection = static fn () => match (true) {
$driver === null || $driver === 'sqlite' => [
'driver' => 'pdo_sqlite',
'path' => 'data/database.sqlite',
],