Skip to content

Commit 5c3c2f8

Browse files
committed
phpstan fix
1 parent f7eb351 commit 5c3c2f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/DatabaseManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ protected function initialiseParams(): void
269269
if ($driver === 'sqlite') {
270270
if ($database === ':memory:') {
271271
// Everything is good
272-
} elseif (empty($host) || empty($user) || empty($database)) {
272+
} elseif (empty($host) || empty($user)) {
273273
throw new MissingDatabaseCredentials();
274274
}
275275
} else {
276-
if (empty($host) || empty($user) || empty($database)) {
276+
if (empty($host) || empty($user)) {
277277
throw new MissingDatabaseCredentials();
278278
}
279279
}

0 commit comments

Comments
 (0)