Skip to content

Commit

Permalink
[CI] Run PHP 8.0 with TYPO3 v11
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Jul 27, 2021
1 parent a289a0b commit b7725ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit b7725ae

Please sign in to comment.