Skip to content

Commit 631c7da

Browse files
ArshidArshid
authored andcommitted
Add rector to migrate __sleep() to __serialize()
1 parent cd475eb commit 631c7da

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/set/php85.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Rector\Config\RectorConfig;
1010
use Rector\Php85\Rector\ArrayDimFetch\ArrayFirstLastRector;
1111
use Rector\Php85\Rector\ClassMethod\NullDebugInfoReturnRector;
12+
use Rector\Php85\Rector\ClassMethod\SleepToSerializeRector;
1213
use Rector\Php85\Rector\Const_\DeprecatedAnnotationToDeprecatedAttributeRector;
1314
use Rector\Php85\Rector\FuncCall\ArrayKeyExistsNullToEmptyStringRector;
1415
use Rector\Php85\Rector\FuncCall\ChrArgModuloRector;
@@ -37,6 +38,7 @@
3738
ColonAfterSwitchCaseRector::class,
3839
ArrayKeyExistsNullToEmptyStringRector::class,
3940
ChrArgModuloRector::class,
41+
SleepToSerializeRector::class,
4042
]
4143
);
4244

0 commit comments

Comments
 (0)