add dbal sets

This commit is contained in:
TomasVotruba 2019-12-27 20:54:43 +01:00
parent c025c72e36
commit bff48951d5
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'