File tree Expand file tree Collapse file tree 13 files changed +53
-14
lines changed Expand file tree Collapse file tree 13 files changed +53
-14
lines changed Original file line number Diff line number Diff line change 66 - develop
77 paths :
88 - ' **.php'
9- - ' composer.** '
9+ - ' composer.*'
1010 - ' depfile.yaml'
1111 - ' .github/workflows/deptrac.yml'
1212 push :
1313 branches :
1414 - develop
1515 paths :
1616 - ' **.php'
17- - ' composer.** '
17+ - ' composer.*'
1818 - ' depfile.yaml'
1919 - ' .github/workflows/deptrac.yml'
2020
Original file line number Diff line number Diff line change 66 - develop
77 paths :
88 - ' **.php'
9- - ' composer.** '
9+ - ' composer.*'
1010 - ' phpunit*'
1111 - ' .github/workflows/infection.yml'
1212 push :
1313 branches :
1414 - develop
1515 paths :
1616 - ' **.php'
17- - ' composer.** '
17+ - ' composer.*'
1818 - ' phpunit*'
1919 - ' .github/workflows/infection.yml'
2020
Original file line number Diff line number Diff line change 66 - develop
77 paths :
88 - ' **.php'
9- - ' composer.** '
9+ - ' composer.*'
1010 - ' phpstan*'
1111 - ' .github/workflows/phpstan.yml'
1212 push :
1313 branches :
1414 - develop
1515 paths :
1616 - ' **.php'
17- - ' composer.** '
17+ - ' composer.*'
1818 - ' phpstan*'
1919 - ' .github/workflows/phpstan.yml'
2020
Original file line number Diff line number Diff line change 66 - develop
77 paths :
88 - ' **.php'
9- - ' composer.** '
9+ - ' composer.*'
1010 - ' phpunit*'
1111 - ' .github/workflows/phpunit.yml'
1212 push :
1313 branches :
1414 - develop
1515 paths :
1616 - ' **.php'
17- - ' composer.** '
17+ - ' composer.*'
1818 - ' phpunit*'
1919 - ' .github/workflows/phpunit.yml'
2020
Original file line number Diff line number Diff line change 66 - develop
77 paths :
88 - ' **.php'
9- - ' composer.** '
9+ - ' composer.*'
1010 - ' rector.php'
1111 - ' .github/workflows/rector.yml'
1212 push :
1313 branches :
1414 - develop
1515 paths :
1616 - ' **.php'
17- - ' composer.** '
17+ - ' composer.*'
1818 - ' rector.php'
1919 - ' .github/workflows/rector.yml'
2020
6464
6565 - name : Analyze for refactoring
6666 run : |
67- composer global require --dev rector/rector:^0.12.10
67+ composer global require --dev rector/rector:^0.12.16
6868 rector process --dry-run --no-progress-bar
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ use ComposerUnused \ComposerUnused \Configuration \Configuration ;
6+ use ComposerUnused \ComposerUnused \Configuration \NamedFilter ;
7+ use ComposerUnused \ComposerUnused \Configuration \PatternFilter ;
8+ use Webmozart \Glob \Glob ;
9+
10+ return static function (Configuration $ config ): Configuration {
11+ return $ config
12+ // ->addNamedFilter(NamedFilter::fromString('symfony/config'))
13+ // ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
14+ ->setAdditionalFilesFor ('codeigniter4/framework ' , [
15+ ...Glob::glob (__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php ' ),
16+ ]);
17+ };
Original file line number Diff line number Diff line change 3636 "twbs/bootstrap" : " ^4.0"
3737 },
3838 "require-dev" : {
39- "codeigniter4/devkit " : " ^1.0 " ,
40- "codeigniter4/framework " : " ^4.1 "
39+ "codeigniter4/framework " : " ^4.1 " ,
40+ "tatter/tools " : " ^2.0 "
4141 },
4242 "config" : {
4343 "allow-plugins" : {
Original file line number Diff line number Diff line change 2929use Rector \Php56 \Rector \FunctionLike \AddDefaultValueForUndefinedVariableRector ;
3030use Rector \Php73 \Rector \FuncCall \JsonThrowOnErrorRector ;
3131use Rector \Php73 \Rector \FuncCall \StringifyStrNeedlesRector ;
32+ use Rector \Php74 \Rector \Property \TypedPropertyRector ;
3233use Rector \PHPUnit \Set \PHPUnitSetList ;
3334use Rector \PSR4 \Rector \FileWithoutNamespace \NormalizeNamespaceByPSR4ComposerAutoloadRector ;
3435use Rector \Set \ValueObject \LevelSetList ;
122123 $ services ->set (MakeInheritedMethodVisibilitySameAsParentRector::class);
123124 $ services ->set (SimplifyEmptyArrayCheckRector::class);
124125 $ services ->set (NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
126+ $ services ->set (TypedPropertyRector::class)
127+ ->configure ([
128+ TypedPropertyRector::INLINE_PUBLIC => true ,
129+ ]);
125130};
Original file line number Diff line number Diff line change 1+ parameters :
2+ ignoreErrors :
3+ - ' #\[BC\] SKIPPED: .+ could not be found in the located source#'
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public function publish(): bool
1919 return $ this
2020 ->addPath ('js ' )
2121 ->addPath ('types ' )
22+ ->removePattern ('*.ts ' )
2223 ->merge (true );
2324 }
2425}
You can’t perform that action at this time.
0 commit comments