File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
17- php-versions : [ '8.1', '8.2 ' ]
17+ php-versions : [ '8.4 ' ]
1818 composer-prefer : [ '', '--prefer-lowest' ]
1919
2020 steps :
Original file line number Diff line number Diff line change 1212 "friendsofphp/php-cs-fixer" : " ^3.89" ,
1313 "phpstan/phpstan" : " ^2.1" ,
1414 "rector/rector" : " ^2.2" ,
15- "symfony/console" : " ^6.4|^7.3 " ,
16- "symfony/framework-bundle" : " ^6.4|^7.3 " ,
17- "symfony/http-kernel" : " ^6.4|^7.3 "
15+ "symfony/console" : " ^6.4|^7.4|^8.0 " ,
16+ "symfony/framework-bundle" : " ^6.4|^7.4|^8.0 " ,
17+ "symfony/http-kernel" : " ^6.4|^7.4|^8.0 "
1818 },
1919 "autoload" : {
2020 "psr-4" : {
Original file line number Diff line number Diff line change 22declare (strict_types=1 );
33
44use Rector \Config \RectorConfig ;
5- use Rector \Doctrine \ Set \DoctrineSetList ;
5+ use Rector \Set \ValueObject \ SetList ;
66use Rector \Symfony \Set \SymfonySetList ;
7- use Rector \Symfony \ Set \ SensiolabsSetList ;
7+ use Rector \ValueObject \ PhpVersion ;
88
99return RectorConfig::configure ()
10- ->withImportNames (removeUnusedImports: true )
11- -> withPaths ([
12- __DIR__ . '/src ' ,
13- ] )
10+ ->withPaths ( array_merge (
11+ is_dir ( __DIR__ . ' /src ' ) ? [ __DIR__ . ' /src ' ] : [],
12+ is_dir ( __DIR__ . '/tests ' ) ? [ __DIR__ . ' /tests ' ] : []
13+ ) )
1414 ->withSets ([
15- DoctrineSetList:: ANNOTATIONS_TO_ATTRIBUTES ,
16- SymfonySetList:: ANNOTATIONS_TO_ATTRIBUTES ,
17- // SensiolabsSetList::ANNOTATIONS_TO_ATTRIBUTES ,
18- // SymfonySetList::SYMFONY_62 ,
19- // SymfonySetList::SYMFONY_CODE_QUALITY,
20- // SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
21- ] );
15+ SymfonySetList:: SYMFONY_80 ,
16+ SetList:: CODE_QUALITY ,
17+ SetList:: DEAD_CODE ,
18+ SetList:: TYPE_DECLARATION ,
19+ ])
20+ -> withPhpVersion (PhpVersion:: PHP_84 )
21+ -> withComposerBased (symfony: true );
You can’t perform that action at this time.
0 commit comments