File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Rector \Core \Configuration \Option ;
6
+ use Rector \Php74 \Rector \Property \TypedPropertyRector ;
7
+ use Rector \Set \ValueObject \SetList ;
8
+ use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
9
+
10
+ return static function (ContainerConfigurator $ containerConfigurator ): void {
11
+ // get parameters
12
+ $ parameters = $ containerConfigurator ->parameters ();
13
+ $ parameters ->set (Option::PATHS , [
14
+ __DIR__ . '/src '
15
+ ]);
16
+
17
+ // Define what rule sets will be applied
18
+ $ containerConfigurator ->import (SetList::PHP_73 );
19
+ $ containerConfigurator ->import (SetList::PHP_74 );
20
+ $ containerConfigurator ->import (SetList::PHP_80 );
21
+ $ containerConfigurator ->import (SetList::PHP_81 );
22
+
23
+ // get services (needed for register a single rule)
24
+ // $services = $containerConfigurator->services();
25
+
26
+ // register a single rule
27
+ // $services->set(TypedPropertyRector::class);
28
+ };
You can’t perform that action at this time.
0 commit comments