This commit is contained in:
Dennis Eichhorn 2016-03-26 17:59:02 +01:00
parent 2c52f544c1
commit d1f6ba7f12
2 changed files with 5 additions and 3 deletions

View File

@ -74,6 +74,8 @@ class MysqlConnection extends ConnectionAbstract
} catch (\PDOException $e) {
$this->status = DatabaseStatus::MISSING_DATABASE;
$this->con = null;
} finally {
$this->dbdata['password'] = '****';
}
}

View File

@ -62,7 +62,7 @@ class Pool
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function add($key = 'core', ConnectionAbstract $db) : bool
public function add(string $key = 'core', ConnectionAbstract $db) : bool
{
if (isset($this->pool[$key])) {
return false;
@ -83,7 +83,7 @@ class Pool
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function get($key = 'core')
public function get(string $key = 'core')
{
if (!isset($this->pool[$key])) {
return false; /* todo: return nullconnection */
@ -102,7 +102,7 @@ class Pool
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function remove($key) : bool
public function remove(string $key) : bool
{
if (!isset($this->pool[$key])) {
return false;