forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp72.yaml
23 lines (20 loc) · 1.01 KB
/
php72.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
parameters:
# PHP 7.2 "object" type hint
enable_object_type: true
services:
Rector\Php\Rector\Each\WhileEachToForeachRector: ~
Rector\Php\Rector\Each\ListEachRector: ~
Rector\Php\Rector\Unset_\UnsetCastRector: ~
Rector\Php\Rector\ConstFetch\BarewordStringRector: ~
Rector\Rector\Function_\RenameFunctionRector:
jpeg2wbmp: 'imagecreatefromjpeg' # and imagewbmp
png2wbmp: 'imagecreatefrompng' # or imagewbmp
# http://php.net/manual/en/migration72.deprecated.php#migration72.deprecated.gmp_random-function
gmp_random: 'gmp_random_bits' # or gmp_random_range
read_exif_data: 'exif_read_data'
Rector\Php\Rector\FuncCall\GetClassOnNullRector: ~
Rector\Php\Rector\FuncCall\IsObjectOnIncompleteClassRector: ~
Rector\Php\Rector\FuncCall\ParseStrWithResultArgumentRector: ~
Rector\Php\Rector\FuncCall\StringsAssertNakedRector: ~
Rector\Php\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector: ~
Rector\Php\Rector\FuncCall\StringifyDefineRector: ~