We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ea46e commit b1a07dbCopy full SHA for b1a07db
src/Ubiquity/orm/reverse/DatabaseChecker.php
@@ -24,7 +24,7 @@ class DatabaseChecker {
24
25
private $databaseExist;
26
27
- private Database $db;
+ private ?Database $db;
28
29
private ?array $models = null;
30
@@ -46,7 +46,7 @@ public function checkDatabase(): bool {
46
try {
47
$this->db = DAO::getDatabase($this->dbOffset);
48
return $this->databaseExist = isset($this->db) && $this->db->isConnected();
49
- } catch (DAOException $e) {
+ } catch (\Error $e) {
50
return $this->databaseExist = false;
51
}
52
0 commit comments