Skip to content

Commit f76855a

Browse files
committed
Update for SF8
1 parent b4c0050 commit f76855a

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
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:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
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": {

rector.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
declare(strict_types=1);
33

44
use Rector\Config\RectorConfig;
5-
use Rector\Doctrine\Set\DoctrineSetList;
5+
use Rector\Set\ValueObject\SetList;
66
use Rector\Symfony\Set\SymfonySetList;
7-
use Rector\Symfony\Set\SensiolabsSetList;
7+
use Rector\ValueObject\PhpVersion;
88

99
return 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);

0 commit comments

Comments
 (0)