Skip to content

Commit e7210a3

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: name exception being caught as it is accessed in the catch block fix tests name exception being caught as it is accessed in the catch block
2 parents 2cc592e + 73f7693 commit e7210a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Store/PdoStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function save(Key $key): void
9191
$conn = $this->getConnection();
9292
try {
9393
$stmt = $conn->prepare($sql);
94-
} catch (\PDOException) {
94+
} catch (\PDOException $e) {
9595
if ($this->isTableMissing($e) && (!$conn->inTransaction() || \in_array($this->driver, ['pgsql', 'sqlite', 'sqlsrv'], true))) {
9696
$this->createTable();
9797
}
@@ -103,7 +103,7 @@ public function save(Key $key): void
103103

104104
try {
105105
$stmt->execute();
106-
} catch (\PDOException) {
106+
} catch (\PDOException $e) {
107107
if ($this->isTableMissing($e) && (!$conn->inTransaction() || \in_array($this->driver, ['pgsql', 'sqlite', 'sqlsrv'], true))) {
108108
$this->createTable();
109109

0 commit comments

Comments
 (0)