rector/e2e/applied-rule-change-docblock/rector.php
Tomas Votruba b055a88927
Add RectorConfigProvider to ask for configuration behave for 3rd party packages (#2187)
* add note about deprecated configure() method

* bump rector config to ruleWithConfiguration()

* remove ParameterProvider from StaticEasyPrefixer, as requires complete alias cleanup messed with scoped

* add RectorConfigProvider
2022-04-28 19:13:39 +02:00

25 lines
817 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
use Rector\DowngradePhp80\Rector\Class_\DowngradeAttributeToAnnotationRector;
use Rector\DowngradePhp80\ValueObject\DowngradeAttributeToAnnotation;
use Rector\Renaming\Rector\Name\RenameClassRector;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
]);
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
'DateTime' => 'DateTimeInterface'
]);
$rectorConfig->ruleWithConfiguration(DowngradeAttributeToAnnotationRector::class, [
new DowngradeAttributeToAnnotation('Symfony\Component\Routing\Annotation\Route')
]);
$rectorConfig->rule(RemoveUselessVarTagRector::class);
};