|
1 | 1 | <?php
|
2 | 2 |
|
| 3 | +declare(strict_types=1); |
| 4 | + |
3 | 5 | use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
|
4 | 6 | use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector;
|
5 | 7 | use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
|
|
19 | 21 | use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
|
20 | 22 | use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
|
21 | 23 | use Rector\Config\RectorConfig;
|
22 |
| -use Rector\Core\ValueObject\PhpVersion; |
23 | 24 | use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
|
24 | 25 | use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
25 | 26 | use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
|
|
28 | 29 | use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
|
29 | 30 | use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
|
30 | 31 | use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
|
| 32 | +use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector; |
31 | 33 | use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector;
|
| 34 | +use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector; |
32 | 35 | use Rector\PHPUnit\Set\PHPUnitSetList;
|
33 | 36 | use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
|
34 | 37 | use Rector\Set\ValueObject\LevelSetList;
|
35 | 38 | use Rector\Set\ValueObject\SetList;
|
36 | 39 | use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
|
37 | 40 | use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
|
38 | 41 | use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
|
| 42 | +use Rector\ValueObject\PhpVersion; |
39 | 43 |
|
40 | 44 | return static function (RectorConfig $rectorConfig): void {
|
41 | 45 | $rectorConfig->sets([
|
|
80 | 84 |
|
81 | 85 | JsonThrowOnErrorRector::class,
|
82 | 86 | StringifyStrNeedlesRector::class,
|
| 87 | + YieldDataProviderRector::class, |
83 | 88 |
|
84 | 89 | // Note: requires php 8
|
85 | 90 | RemoveUnusedPromotedPropertyRector::class,
|
| 91 | + AnnotationWithValueToAttributeRector::class, |
86 | 92 |
|
87 | 93 | // May load view files directly when detecting classes
|
88 | 94 | StringClassNameToClassConstantRector::class,
|
|
120 | 126 | $rectorConfig
|
121 | 127 | ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [
|
122 | 128 | /**
|
123 |
| - * The INLINE_PUBLIC value is default to false to avoid BC break, if you use for libraries and want to preserve BC break, you don't need to configure it, as it included in LevelSetList::UP_TO_PHP_74 |
| 129 | + * The INLINE_PUBLIC value is default to false to avoid BC break, |
| 130 | + * if you use for libraries and want to preserve BC break, you don't |
| 131 | + * need to configure it, as it included in LevelSetList::UP_TO_PHP_74 |
124 | 132 | * Set to true for projects that allow BC break
|
125 | 133 | */
|
126 | 134 | TypedPropertyFromAssignsRector::INLINE_PUBLIC => false,
|
|
0 commit comments