Merge pull request #2514 from rectorphp/doctrine-dbal

[Doctrine/dbal] Add 2.10 and 3.0 sets
This commit is contained in:
Tomas Votruba 2019-12-28 11:09:37 +01:00 committed by GitHub
commit 32ecc78448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -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'

View File

@ -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'