|
37 | 37 | use Rector\Php70\Rector\FuncCall\RandomFunctionRector; |
38 | 38 | use Rector\Php71\Rector\FuncCall\CountOnNullRector; |
39 | 39 | use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; |
| 40 | +use Rector\Php80\Rector\Class_\AnnotationToAttributeRector; |
| 41 | +use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
| 42 | +use Rector\Php80\Rector\FunctionLike\MixedTypeRector; |
| 43 | +use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector; |
| 44 | +use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector; |
| 45 | +use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector; |
| 46 | +use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DependsAnnotationWithValueToAttributeRector; |
40 | 47 | use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector; |
41 | 48 | use Rector\PHPUnit\Set\PHPUnitSetList; |
42 | 49 | use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; |
|
50 | 57 | return static function (RectorConfig $rectorConfig): void { |
51 | 58 | $rectorConfig->sets([ |
52 | 59 | SetList::DEAD_CODE, |
53 | | - LevelSetList::UP_TO_PHP_74, |
| 60 | + LevelSetList::UP_TO_PHP_80, |
54 | 61 | PHPUnitSetList::PHPUNIT_CODE_QUALITY, |
55 | 62 | PHPUnitSetList::PHPUNIT_100, |
56 | 63 | ]); |
|
112 | 119 | RandomFunctionRector::class, |
113 | 120 |
|
114 | 121 | SimplifyRegexPatternRector::class, |
| 122 | + |
| 123 | + // PHP 8.0 features but cause breaking changes |
| 124 | + ClassPropertyAssignToConstructorPromotionRector::class, |
| 125 | + MixedTypeRector::class, |
| 126 | + |
| 127 | + // PHPUnit 10 (requires PHP 8.1) features |
| 128 | + DataProviderAnnotationToAttributeRector::class, |
| 129 | + DependsAnnotationWithValueToAttributeRector::class, |
| 130 | + AnnotationWithValueToAttributeRector::class, |
| 131 | + AnnotationToAttributeRector::class, |
| 132 | + CoversAnnotationWithValueToAttributeRector::class, |
115 | 133 | ]); |
116 | 134 |
|
117 | 135 | // auto import fully qualified class names |
|
0 commit comments