Skip to content

Commit e4ff223

Browse files
committed
Remove references to DBALException
1 parent 2e8219d commit e4ff223

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Store/PdoStore.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
namespace Symfony\Component\Lock\Store;
1313

1414
use Doctrine\DBAL\Connection;
15-
use Doctrine\DBAL\DBALException;
1615
use Doctrine\DBAL\DriverManager;
17-
use Doctrine\DBAL\Exception;
16+
use Doctrine\DBAL\Exception as DBALException;
1817
use Doctrine\DBAL\Exception\TableNotFoundException;
1918
use Doctrine\DBAL\Schema\Schema;
2019
use Symfony\Component\Lock\Exception\InvalidArgumentException;
@@ -144,7 +143,7 @@ public function save(Key $key)
144143
$this->createTable();
145144
}
146145
$stmt->execute();
147-
} catch (DBALException | Exception $e) {
146+
} catch (DBALException $e) {
148147
// the lock is already acquired. It could be us. Let's try to put off.
149148
$this->putOffExpiration($key, $this->initialTtl);
150149
} catch (\PDOException $e) {
@@ -258,7 +257,6 @@ private function getConnection(): object
258257
*
259258
* @throws \PDOException When the table already exists
260259
* @throws DBALException When the table already exists
261-
* @throws Exception When the table already exists
262260
* @throws \DomainException When an unsupported PDO driver is used
263261
*/
264262
public function createTable(): void

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"symfony/polyfill-php80": "^1.16"
2323
},
2424
"require-dev": {
25-
"doctrine/dbal": "^2.10|^3.0",
25+
"doctrine/dbal": "^2.13|^3.0",
2626
"mongodb/mongodb": "~1.1",
2727
"predis/predis": "~1.0"
2828
},
2929
"conflict": {
30-
"doctrine/dbal": "<2.10"
30+
"doctrine/dbal": "<2.13"
3131
},
3232
"autoload": {
3333
"psr-4": { "Symfony\\Component\\Lock\\": "" },

0 commit comments

Comments
 (0)