rector/config/level/php/php72.yml

22 lines
910 B
YAML
Raw Normal View History

parameters:
# PHP 7.2 "object" type hint
enable_object_type: true
2018-10-03 21:14:08 +08:00
services:
Rector\Php\Rector\Each\WhileEachToForeachRector: ~
2018-10-03 21:14:08 +08:00
Rector\Php\Rector\Each\ListEachRector: ~
2018-10-17 05:21:02 +02:00
Rector\Php\Rector\Unset_\UnsetCastRector: ~
2018-11-03 00:29:56 +01:00
Rector\Php\Rector\ConstFetch\BarewordStringRector: ~
2018-10-17 10:35:11 +02:00
Rector\Rector\Function_\FunctionReplaceRector:
jpeg2wbmp: 'imagecreatefromjpeg' # and imagewbmp
png2wbmp: 'imagecreatefrompng' # or imagewbmp
2018-12-14 21:03:30 +01:00
# http://php.net/manual/en/migration72.deprecated.php#migration72.deprecated.gmp_random-function
2018-10-17 10:35:11 +02:00
gmp_random: 'gmp_random_bits' # or gmp_random_range
read_exif_data: 'exif_read_data'
Rector\Php\Rector\FunctionLike\ParamScalarTypehintRector: ~
Rector\Php\Rector\FunctionLike\ReturnScalarTypehintRector: ~
2018-12-14 21:20:58 +01:00
Rector\Php\Rector\FuncCall\GetClassOnNullRector: ~
2018-12-14 22:31:21 +01:00
Rector\Php\Rector\FuncCall\IsObjectOnIncompleteClassRector: ~