Skip to content

Commit

Permalink
Merge pull request ifsnop#80 from tomsommer/patch-1
Browse files Browse the repository at this point in the history
Suppress E_WARNING from PDO::__construct()
  • Loading branch information
ifsnop committed Jun 11, 2015
2 parents 39612f6 + 3b703f4 commit 757acfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ifsnop/Mysqldump/Mysqldump.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private function connect()
try {
switch ($this->dbType) {
case 'sqlite':
$this->dbHandler = new PDO("sqlite:" . $this->db, null, null, $this->pdoSettings);
$this->dbHandler = @new PDO("sqlite:" . $this->db, null, null, $this->pdoSettings);
break;
case 'mysql':
case 'pgsql':
Expand All @@ -195,7 +195,7 @@ private function connect()
":host=" . $this->host .
(isset($this->port) ? ";port=" . $this->port : "") .
";dbname=" . $this->db;
$this->dbHandler = new PDO(
$this->dbHandler = @new PDO(
$dsn,
$this->user,
$this->pass,
Expand Down

0 comments on commit 757acfb

Please sign in to comment.