From 9888d4538df31ab2d9fec6816b2ab931bea2ce90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 4 Mar 2022 18:59:19 +0100 Subject: [PATCH] Use non deprecated method to get database driver type. --- src/Migration/AbstractMultiPlatformMigration.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Migration/AbstractMultiPlatformMigration.php b/src/Migration/AbstractMultiPlatformMigration.php index efd96107..ea5379ac 100644 --- a/src/Migration/AbstractMultiPlatformMigration.php +++ b/src/Migration/AbstractMultiPlatformMigration.php @@ -4,6 +4,7 @@ namespace App\Migration; use Doctrine\DBAL\Connection; use Doctrine\DBAL\DBALException; +use Doctrine\DBAL\Driver\AbstractMySQLDriver; use Doctrine\DBAL\Driver\AbstractSQLiteDriver; use Doctrine\DBAL\Exception; use Doctrine\DBAL\Platforms\AbstractMySQLPlatform; @@ -123,7 +124,7 @@ abstract class AbstractMultiPlatformMigration extends AbstractMigration */ public function getDatabaseType(): ?string { - if ($this->connection->getDriver() instanceof AbstractMySQLPlatform) { + if ($this->connection->getDriver() instanceof AbstractMySQLDriver) { return 'mysql'; }