File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 22
33use Rector \Config \RectorConfig ;
44use Rector \Renaming \Rector \Name \RenameClassRector ;
5+ use Rector \Renaming \Rector \PropertyFetch \RenamePropertyRector ;
6+ use Rector \Renaming \ValueObject \RenameProperty ;
57
68return static function (RectorConfig $ config ) : void {
79 $ config ->removeUnusedImports ();
810 $ config ->importNames ();
911 $ config ->importShortClasses ();
12+
1013 $ config ->ruleWithConfiguration (RenameClassRector::class, [
1114 'Tempest \\Database \\Id ' => 'Tempest \\Database \\PrimaryKey ' ,
1215 'Tempest \\CommandBus \\AsyncCommand ' => 'Tempest \\CommandBus \\Async ' ,
1316 ]);
17+
18+ $ config ->ruleWithConfiguration (RenamePropertyRector::class, [
19+ new RenameProperty (
20+ type: 'Tempest \\Database \\PrimaryKey ' ,
21+ oldProperty: 'id ' ,
22+ newProperty: 'value '
23+ )
24+ ]);
1425};
You can’t perform that action at this time.
0 commit comments