PlatformGetNameToInstanceofRector
Change $platform->getName() === "postgresql" to $platform instanceof PostgreSQLPlatform, following the DBAL 3.2 deprecation of AbstractPlatform::getName(), see https://github.com/doctrine/dbal/pull/4755
-if ('postgresql' === $this->platform->getName()) {}
+if ($this->platform instanceof \Doctrine\DBAL\Platforms\PostgreSQLPlatform) {}
Configure your rector.php:
<?php
use Rector\Config\RectorConfig;
use Rector\Doctrine\Dbal32\Rector\Identical\PlatformGetNameToInstanceofRector;
return RectorConfig::configure()
->withRules([
PlatformGetNameToInstanceofRector::class,
]);
PACKAGE:
doctrine/dbal >= 3.2