Skip to content

Commit

Permalink
Merge pull request #15 from KojoEnch/dbal-4
Browse files Browse the repository at this point in the history
Fix Doctrine DBAL VersionAwarePlatformDriver deprecation
  • Loading branch information
pfilsx authored Aug 2, 2024
2 parents 965c746 + a917ada commit 24d2af9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/DBAL/DriverWrapper/PostgreSQLDriverWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Schema\AbstractSchemaManager;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\VersionAwarePlatformDriver;
use Pfilsx\PostgreSQLDoctrine\DBAL\Platform\PostgreSQLPlatform;
use Pfilsx\PostgreSQLDoctrine\DBAL\Schema\PostgreSQLSchemaManager;
use Pfilsx\PostgreSQLDoctrine\DBAL\Type\EnumType;

final class PostgreSQLDriverWrapper implements VersionAwarePlatformDriver
final class PostgreSQLDriverWrapper implements Driver
{
private Driver $innerDriver;

Expand All @@ -38,11 +37,6 @@ public function getDatabasePlatform(): PostgreSQLPlatform
return new PostgreSQLPlatform();
}

public function createDatabasePlatformForVersion($version): PostgreSQLPlatform
{
return new PostgreSQLPlatform();
}

public function getSchemaManager(Connection $conn, AbstractPlatform $platform): AbstractSchemaManager
{
\assert($platform instanceof PostgreSQLPlatform);
Expand Down

0 comments on commit 24d2af9

Please sign in to comment.