Last active
May 19, 2026 07:50
-
-
Save sokil/e99d1bca0e3121fa154cc4a097071ae9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use Rector\Config\RectorConfig; | |
| use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector; | |
| use Rector\Php70\Rector\FuncCall\MultiDirnameRector; | |
| use Rector\Php70\Rector\StmtsAwareInterface\IfIssetToCoalescingRector; | |
| use Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector; | |
| use Rector\Php71\Rector\List_\ListToArrayDestructRector; | |
| use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; | |
| use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector; | |
| use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; | |
| use Rector\Php80\Rector\ClassConstFetch\ClassOnThisVariableObjectRector; | |
| use Rector\Php80\Rector\FuncCall\ClassOnObjectRector; | |
| use Rector\Php82\Rector\Class_\ReadOnlyClassRector; | |
| use Rector\Php83\Rector\ClassConst\AddTypeToConstRector; | |
| use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector; | |
| use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; | |
| use Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector; | |
| use Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector; | |
| use Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector; | |
| return RectorConfig::configure() | |
| ->withPaths([ | |
| __DIR__ . '/', | |
| ]) | |
| ->withPhpSets(php84: true) | |
| ->withSkip([ | |
| // its not a problems | |
| AddTypeToConstRector::class, | |
| AddOverrideAttributeToOverriddenMethodsRector::class, | |
| ReadOnlyPropertyRector::class, | |
| ReadOnlyClassRector::class, | |
| RemoveUnusedVariableInCatchRector::class, | |
| AddClosureVoidReturnTypeWhereNoReturnRector::class, | |
| MultiDirnameRector::class, | |
| ClassPropertyAssignToConstructorPromotionRector::class, | |
| ClassConstantToSelfClassRector::class, | |
| TernaryToNullCoalescingRector::class, | |
| ClosureToArrowFunctionRector::class, | |
| IfIssetToCoalescingRector::class, | |
| ListToArrayDestructRector::class, | |
| ClassOnThisVariableObjectRector::class, | |
| ClassOnObjectRector::class, | |
| NewMethodCallWithoutParenthesesRector::class, | |
| DeprecatedAnnotationToDeprecatedAttributeRector::class, | |
| ]) | |
| ->withTypeCoverageLevel(0) | |
| ->withDeadCodeLevel(0) | |
| ->withCodeQualityLevel(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use Rector\Config\RectorConfig; | |
| use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector; | |
| return RectorConfig::configure() | |
| ->withPaths([ | |
| __DIR__ . '/src', | |
| ]) | |
| ->withRules([ | |
| // PHP 8.4: implicit nullable params are deprecated — `Type $x = null` → `?Type $x = null` | |
| ExplicitNullableParamTypeRector::class, | |
| ]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment