Skip to content

Commit c83ea18

Browse files
committed
- MySQLExceptionInterpreter: This pdo attribute is declared but never used. You should remove it.
1 parent 0347a87 commit c83ea18

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/Databases/MySQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(PDO $pdo) {
4141
$this->pdo = $pdo;
4242
$this->aliasRegistry = new AliasRegistry();
4343
$this->queryLoggers = new QueryLoggers();
44-
$this->exceptionInterpreter = new MySQLExceptionInterpreter($pdo);
44+
$this->exceptionInterpreter = new MySQLExceptionInterpreter();
4545
}
4646

4747
/**

src/Databases/MySQL/MySQLExceptionInterpreter.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
<?php
22
namespace Kir\MySQL\Databases\MySQL;
33

4-
use PDO;
54
use PDOException;
65
use Kir\MySQL\Exceptions\SqlDeadLockException;
76
use Kir\MySQL\Exceptions\DuplicateUniqueKeyException;
87
use Kir\MySQL\Exceptions\LockWaitTimeoutExceededException;
98

109
class MySQLExceptionInterpreter {
11-
/** @var PDO */
12-
private $pdo;
13-
14-
/**
15-
* @param PDO $pdo
16-
*/
17-
public function __construct(PDO $pdo) {
18-
$this->pdo = $pdo;
19-
}
20-
2110
/**
2211
* @param PDOException $exception
2312
* @throw PDOException

0 commit comments

Comments
 (0)