Skip to content

Commit

Permalink
Fix assertion in AbstractPostgreSQLDriver::getSchemaManager()
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Mar 19, 2022
1 parent baf6efe commit ce5b708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Driver/AbstractPostgreSQLDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
use Doctrine\DBAL\Platforms\PostgreSQL94Platform;
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
use Doctrine\DBAL\Schema\PostgreSQLSchemaManager;
use Doctrine\DBAL\VersionAwarePlatformDriver;
use Doctrine\Deprecations\Deprecation;
Expand Down Expand Up @@ -66,7 +67,7 @@ public function getDatabasePlatform()
*/
public function getSchemaManager(Connection $conn, AbstractPlatform $platform)
{
assert($platform instanceof PostgreSQL94Platform);
assert($platform instanceof PostgreSQLPlatform);

return new PostgreSQLSchemaManager($conn, $platform);
}
Expand Down

0 comments on commit ce5b708

Please sign in to comment.