diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4430477..6d68745c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,9 @@ jobs: matrix: php-versions: ['7.4'] typo3-versions: ['^10', '^11'] + include: + - php-versions: 8.0 + typo3-versions: ^11 steps: - name: Check out repository uses: actions/checkout@v2 @@ -42,7 +45,7 @@ jobs: - name: Install composer dependencies run: | composer --version - composer require typo3/cms-core=${{ matrix.typo3-versions }} rector/rector=^0.8 --no-progress --prefer-dist --optimize-autoloader + composer require typo3/cms-core=${{ matrix.typo3-versions }} --no-progress --prefer-dist --optimize-autoloader git checkout composer.json - name: Run PHP linter run: | diff --git a/rector.php b/rector.php index 40da4b72..6155743c 100644 --- a/rector.php +++ b/rector.php @@ -5,6 +5,7 @@ use Rector\Core\Configuration\Option; use Rector\Core\ValueObject\PhpVersion; use Rector\DeadCode\Rector\Cast\RecastingRemovalRector; +use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\Php71\Rector\FuncCall\CountOnNullRector; use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector; use Rector\Php74\Rector\Property\TypedPropertyRector; @@ -64,6 +65,7 @@ RecastingRemovalRector::class => [ __DIR__ . '/Tests/Unit/ViewHelpers/ViewHelperTestCase.php', ], + RemoveUnusedPromotedPropertyRector::class, // to avoid rector warning on PHP8.0 with codebase compatible with PHP7.4 ReturnTypeDeclarationRector::class => [ // because psalm complaints about different return types for getType() __DIR__ . '/Classes/Core/Model/AbstractType.php',