Skip to content

Commit

Permalink
Class Connection true/false vs docblock
Browse files Browse the repository at this point in the history
However it returns true or throws an exception.
Question is also why $this->_driver->connect() does not also return a boolean...?
  • Loading branch information
inoas committed May 22, 2017
1 parent b1aaa09 commit 9ac73ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Database/Connection.php
Expand Up @@ -225,6 +225,8 @@ public function connect()
} catch (\Exception $e) {
throw new MissingConnectionException(['reason' => $e->getMessage()]);
}

return false;
}

/**
Expand Down

0 comments on commit 9ac73ac

Please sign in to comment.