Skip to content

Commit

Permalink
Add PHP 8.1 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Nov 29, 2021
1 parent fccd712 commit 9bd34e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
php-version: ['7.3', '7.4', '8.0']
php-version: ['7.3', '7.4', '8.0', '8.1']
dependencies: ['']
include:
- { php-version: '7.3', dependencies: '--prefer-lowest --prefer-stable' }
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: '7.4' # Code coverage on PHP 8 is not supported with PHPUnit 8
extensions: mbstring, intl, zip
coverage: xdebug

Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
extensions: mbstring, intl

- name: Install dependencies
Expand Down
4 changes: 4 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php declare(strict_types=1);

use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff;
use PhpCsFixer\Fixer\FunctionNotation\FunctionTypehintSpaceFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitExpectationFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
Expand All @@ -23,6 +24,9 @@
'src/Test/AbstractTestCase.php',
'src/WebDriver/RemoteWebDriver.php',
],
FunctionTypehintSpaceFixer::class => [ // broken for '&' when args in anonymous function passed by reference
'src-tests/Selenium/SeleniumServerAdapterTest.php',
],
'PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneClassPerFileSniff.MultipleFound' => [
'src-tests/Process/Fixtures/InvalidTests/MultipleClassesInFileTest.php',
],
Expand Down

0 comments on commit 9bd34e2

Please sign in to comment.