mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-20 08:05:29 +01:00
Merge pull request #2514 from rectorphp/doctrine-dbal
[Doctrine/dbal] Add 2.10 and 3.0 sets
This commit is contained in:
commit
32ecc78448
5
config/set/doctrine/doctrine-dbal-210.yaml
Normal file
5
config/set/doctrine/doctrine-dbal-210.yaml
Normal 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'
|
14
config/set/doctrine/doctrine-dbal-30.yaml
Normal file
14
config/set/doctrine/doctrine-dbal-30.yaml
Normal 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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user