diff --git a/rector.php b/rector.php index df89a98bf808..f3f1f3f12bdc 100644 --- a/rector.php +++ b/rector.php @@ -42,14 +42,9 @@ use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector; use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; use Rector\Php70\Rector\FuncCall\RandomFunctionRector; -use Rector\Php80\Rector\Class_\AnnotationToAttributeRector; use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; use Rector\Php80\Rector\FunctionLike\MixedTypeRector; use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; -use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector; -use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector; -use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector; -use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DependsAnnotationWithValueToAttributeRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector; use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; @@ -176,13 +171,6 @@ // Unnecessary (string) is inserted NullToStrictStringFuncCallArgRector::class, - - // PHPUnit 10 (requires PHP 8.1) features - DataProviderAnnotationToAttributeRector::class, - DependsAnnotationWithValueToAttributeRector::class, - AnnotationWithValueToAttributeRector::class, - AnnotationToAttributeRector::class, - CoversAnnotationWithValueToAttributeRector::class, ]) // auto import fully qualified class names ->withImportNames(removeUnusedImports: true) diff --git a/system/Test/DatabaseTestTrait.php b/system/Test/DatabaseTestTrait.php index 863ed542319d..c0d4473c7b9e 100644 --- a/system/Test/DatabaseTestTrait.php +++ b/system/Test/DatabaseTestTrait.php @@ -19,6 +19,7 @@ use Config\Database; use Config\Migrations; use Config\Services; +use PHPUnit\Framework\Attributes\AfterClass; /** * DatabaseTestTrait @@ -228,14 +229,12 @@ public function seed(string $name) // -------------------------------------------------------------------- // Utility // -------------------------------------------------------------------- - /** * Reset $doneMigration and $doneSeed * - * @afterClass - * * @return void */ + #[AfterClass] public static function resetMigrationSeedCount() { self::$doneMigration = false;