Skip to content

Commit 6ecce2d

Browse files
BUGFIX: Use fullyqualified classname for exception (#19)
* TASK: Use fullyqualified classname for exception * Fix FQN of caught DBAL exception Co-authored-by: bwaidelich <[email protected]>
1 parent 2624e53 commit 6ecce2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Classes/Queue/DoctrineQueue.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Doctrine\DBAL\Exception\TableNotFoundException;
2020
use Flowpack\JobQueue\Common\Queue\Message;
2121
use Flowpack\JobQueue\Common\Queue\QueueInterface;
22-
use Neos\Flow\Annotations as Flow;
2322

2423
/**
2524
* A queue implementation using doctrine as the queue backend
@@ -116,7 +115,7 @@ public function setUp(): void
116115
$this->connection->exec($createDatabaseStatement);
117116
try {
118117
$this->connection->exec("CREATE INDEX state_scheduled ON {$this->connection->quoteIdentifier($this->tableName)} (state, scheduled)");
119-
} catch (Exception $e) {
118+
} catch (DBALException $e) {
120119
// See https://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists
121120
}
122121
}

0 commit comments

Comments
 (0)