Skip to content

Commit a917ada

Browse files
authored
Fix Doctrine DBAL VersionAwarePlatformDriver deprecation
The `ServerInfoAwareConnection` and `VersionAwarePlatformDriver` interfaces are deprecated. In the next DBAL major version, all drivers and driver connections will be required to implement the APIs aware of the server version. See doctrine/dbal#4751
1 parent 965c746 commit a917ada

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/DBAL/DriverWrapper/PostgreSQLDriverWrapper.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
use Doctrine\DBAL\Platforms\AbstractPlatform;
1212
use Doctrine\DBAL\Schema\AbstractSchemaManager;
1313
use Doctrine\DBAL\Types\Type;
14-
use Doctrine\DBAL\VersionAwarePlatformDriver;
1514
use Pfilsx\PostgreSQLDoctrine\DBAL\Platform\PostgreSQLPlatform;
1615
use Pfilsx\PostgreSQLDoctrine\DBAL\Schema\PostgreSQLSchemaManager;
1716
use Pfilsx\PostgreSQLDoctrine\DBAL\Type\EnumType;
1817

19-
final class PostgreSQLDriverWrapper implements VersionAwarePlatformDriver
18+
final class PostgreSQLDriverWrapper implements Driver
2019
{
2120
private Driver $innerDriver;
2221

@@ -38,11 +37,6 @@ public function getDatabasePlatform(): PostgreSQLPlatform
3837
return new PostgreSQLPlatform();
3938
}
4039

41-
public function createDatabasePlatformForVersion($version): PostgreSQLPlatform
42-
{
43-
return new PostgreSQLPlatform();
44-
}
45-
4640
public function getSchemaManager(Connection $conn, AbstractPlatform $platform): AbstractSchemaManager
4741
{
4842
\assert($platform instanceof PostgreSQLPlatform);

0 commit comments

Comments
 (0)