From 9027cbd196b4988cb058a07805c90bbf49f14808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 17 Apr 2023 15:25:09 +0200 Subject: [PATCH] DX: rector config: up to PHP8 [ci-skip][wip] --- rector.php | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/rector.php b/rector.php index ec9a0c684..5e304c8b4 100644 --- a/rector.php +++ b/rector.php @@ -21,7 +21,7 @@ return static function (RectorConfig $rectorConfig): void { //define sets of rules $rectorConfig->sets([ - LevelSetList::UP_TO_PHP_74 + LevelSetList::UP_TO_PHP_80 ]); // skip some path... @@ -36,25 +36,25 @@ return static function (RectorConfig $rectorConfig): void { \Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector::class, // remove all PHP80 rules, in order to activate them one by one - \Rector\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector::class, - \Rector\Php80\Rector\Class_\AnnotationToAttributeRector::class, - \Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector::class, - \Rector\Php80\Rector\FuncCall\ClassOnObjectRector::class, - \Rector\Php80\Rector\ClassConstFetch\ClassOnThisVariableObjectRector::class, - \Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector::class, - \Rector\Php80\Rector\Class_\DoctrineAnnotationClassToAttributeRector::class, - \Rector\Php80\Rector\ClassMethod\FinalPrivateToPrivateVisibilityRector::class, - \Rector\Php80\Rector\Ternary\GetDebugTypeRector::class, - \Rector\Php80\Rector\FunctionLike\MixedTypeRector::class, - \Rector\Php80\Rector\Property\NestedAnnotationToAttributeRector::class, - \Rector\Php80\Rector\FuncCall\Php8ResourceReturnToObjectRector::class, - \Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector::class, - \Rector\Php80\Rector\ClassMethod\SetStateToStaticRector::class, - \Rector\Php80\Rector\NotIdentical\StrContainsRector::class, - \Rector\Php80\Rector\Identical\StrEndsWithRector::class, - \Rector\Php80\Rector\Identical\StrStartsWithRector::class, - \Rector\Php80\Rector\Class_\StringableForToStringRector::class, - \Rector\Php80\Rector\FuncCall\TokenGetAllToObjectRector::class, - \Rector\Php80\Rector\FunctionLike\UnionTypesRector::class +// \Rector\Php80\Rector\ClassMethod\AddParamBasedOnParentClassMethodRector::class, +// \Rector\Php80\Rector\Class_\AnnotationToAttributeRector::class, +// \Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector::class, +// \Rector\Php80\Rector\FuncCall\ClassOnObjectRector::class, +// \Rector\Php80\Rector\ClassConstFetch\ClassOnThisVariableObjectRector::class, +// \Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector::class, +// \Rector\Php80\Rector\Class_\DoctrineAnnotationClassToAttributeRector::class, +// \Rector\Php80\Rector\ClassMethod\FinalPrivateToPrivateVisibilityRector::class, +// \Rector\Php80\Rector\Ternary\GetDebugTypeRector::class, +// \Rector\Php80\Rector\FunctionLike\MixedTypeRector::class, +// \Rector\Php80\Rector\Property\NestedAnnotationToAttributeRector::class, +// \Rector\Php80\Rector\FuncCall\Php8ResourceReturnToObjectRector::class, +// \Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector::class, +// \Rector\Php80\Rector\ClassMethod\SetStateToStaticRector::class, +// \Rector\Php80\Rector\NotIdentical\StrContainsRector::class, +// \Rector\Php80\Rector\Identical\StrEndsWithRector::class, +// \Rector\Php80\Rector\Identical\StrStartsWithRector::class, +// \Rector\Php80\Rector\Class_\StringableForToStringRector::class, +// \Rector\Php80\Rector\FuncCall\TokenGetAllToObjectRector::class, +// \Rector\Php80\Rector\FunctionLike\UnionTypesRector::class ]); };