Skip to content

Commit

Permalink
Avoid a dependency declaration problem while being compatible with DB…
Browse files Browse the repository at this point in the history
…AL 2 and 3
  • Loading branch information
mpdude committed Jan 18, 2024
1 parent f3bf274 commit eaccdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webfactory/Slimdump/Database/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function dumpData(Schema\Table $asset, Table $tableConfig): void
$progress->start();

$wrappedConnection = $this->connection->getWrappedConnection();
if ($wrappedConnection instanceof \Doctrine\DBAL\Driver\PDOConnection) {
if ($wrappedConnection instanceof \PDO) {
$pdo = $wrappedConnection;
} elseif ($wrappedConnection instanceof \Doctrine\DBAL\Driver\PDO\Connection) {
$pdo = $wrappedConnection->getWrappedConnection();
Expand Down

0 comments on commit eaccdc3

Please sign in to comment.