From bff48951d5a126c1a3834be048040d7feea6dc50 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Fri, 27 Dec 2019 20:54:43 +0100 Subject: [PATCH] add dbal sets --- config/set/doctrine/doctrine-dbal-210.yaml | 5 +++++ config/set/doctrine/doctrine-dbal-30.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 config/set/doctrine/doctrine-dbal-210.yaml create mode 100644 config/set/doctrine/doctrine-dbal-30.yaml diff --git a/config/set/doctrine/doctrine-dbal-210.yaml b/config/set/doctrine/doctrine-dbal-210.yaml new file mode 100644 index 00000000000..ac67ef4b9a7 --- /dev/null +++ b/config/set/doctrine/doctrine-dbal-210.yaml @@ -0,0 +1,5 @@ +services: + # https://github.com/doctrine/dbal/blob/master/UPGRADE.md#deprecated-type-constants + Rector\Renaming\Rector\Class_\RenameClassRector: + $oldToNewClasses: + Doctrine\DBAL\Types\Type: 'Doctrine\DBAL\Types\Types' diff --git a/config/set/doctrine/doctrine-dbal-30.yaml b/config/set/doctrine/doctrine-dbal-30.yaml new file mode 100644 index 00000000000..3eb2458344b --- /dev/null +++ b/config/set/doctrine/doctrine-dbal-30.yaml @@ -0,0 +1,14 @@ +services: + # https://github.com/doctrine/dbal/blob/master/UPGRADE.md#bc-break-changes-in-handling-string-and-binary-columns + Rector\Renaming\Rector\MethodCall\RenameMethodRector: + $oldToNewMethodsByClass: + DBAL\Platforms\AbstractPlatform: + getVarcharTypeDeclarationSQL: 'getStringTypeDeclarationSQL' + Doctrine\DBAL\Driver\DriverException: + getErrorCode: 'getCode' + + Rector\Rector\ClassMethod\AddReturnTypeDeclarationRector: + $typehintForMethodByClass: + Doctrine\DBAL\Connection: + ping: 'void' +