File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " composer"
4+ directory : " /"
5+ schedule :
6+ interval : " daily"
Original file line number Diff line number Diff line change 55 <phar name =" roave/backwardcompatibilitycheck" version =" ^5.0.0" installed =" 5.0.0" location =" ./tools/roave-backward-compatibility-check" copy =" true" />
66 <phar name =" psalm" version =" ^3.12.2" installed =" 3.18.2" location =" ./tools/psalm" copy =" true" />
77 <phar name =" infection" version =" ^0.16.4" installed =" 0.18.2" location =" ./tools/infection" copy =" true" />
8+ <phar name =" phpbench" version =" ^1.0.0-alpha4" installed =" 1.0.0-alpha4" location =" ./tools/phpbench" copy =" true" />
89</phive >
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 Rector \Core \ValueObject \PhpVersion ;
9+ use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
10+
11+ return static function (ContainerConfigurator $ containerConfigurator ): void {
12+ // get parameters
13+ $ parameters = $ containerConfigurator ->parameters ();
14+
15+ $ parameters ->set (Option::PATHS , [__DIR__ . '/src ' ]);
16+
17+ // Define what rule sets will be applied
18+ $ parameters ->set (Option::SETS , [
19+ // SetList::DEAD_CODE,
20+ SetList::PHP_74 ,
21+ SetList::TYPE_DECLARATION ,
22+ SetList::CODING_STYLE ,
23+ SetList::PERFORMANCE
24+ ]);
25+
26+ $ parameters ->set (Option::PHP_VERSION_FEATURES , PhpVersion::PHP_74 );
27+
28+ // get services (needed for register a single rule)
29+ // $services = $containerConfigurator->services();
30+
31+ // register a single rule
32+ // $services->set(TypedPropertyRector::class);
33+ };
You can’t perform that action at this time.
0 commit comments