diff --git a/DataStorage/Database/Exception/InvalidDatabaseTypeException.php b/DataStorage/Database/Exception/InvalidDatabaseTypeException.php new file mode 100644 index 000000000..8f3338823 --- /dev/null +++ b/DataStorage/Database/Exception/InvalidDatabaseTypeException.php @@ -0,0 +1,40 @@ +execute(); $this->uriLoad = $sth->fetchAll(\PDO::FETCH_GROUP); + break; + default: + throw new InvalidDatabaseTypeException($this->app->dbPool->get('select')->getType()); } } @@ -198,6 +202,8 @@ class ModuleManager $sth->execute(); $this->active = $sth->fetchAll(\PDO::FETCH_COLUMN); break; + default: + throw new InvalidDatabaseTypeException($this->app->dbPool->get('select')->getType()); } } @@ -269,6 +275,8 @@ class ModuleManager $sth->execute(); $this->installed = $sth->fetchAll(\PDO::FETCH_GROUP); break; + default: + throw new InvalidDatabaseTypeException($this->app->dbPool->get('select')->getType()); } }