File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Lock \Store ;
1313
1414use Doctrine \DBAL \Connection ;
15- use Doctrine \DBAL \DBALException ;
1615use Doctrine \DBAL \DriverManager ;
17- use Doctrine \DBAL \Exception ;
16+ use Doctrine \DBAL \Exception as DBALException ;
1817use Doctrine \DBAL \Exception \TableNotFoundException ;
1918use Doctrine \DBAL \Schema \Schema ;
2019use 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
Original file line number Diff line number Diff line change 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\\ " : " " },
You can’t perform that action at this time.
0 commit comments