Skip to content

Commit ed5ea0b

Browse files
committed
chore(ci): php 8 on php-cs-fixer and phpstan
1 parent 24eb718 commit ed5ea0b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ env:
1010

1111
jobs:
1212
php-cs-fixer:
13+
name: PHP-cs-fixer (PHP ${{ matrix.php }})
1314
runs-on: ubuntu-latest
1415
timeout-minutes: 20
1516
strategy:
1617
matrix:
1718
php:
18-
- '7.4'
19+
- '8'
1920
fail-fast: false
2021
env:
2122
PHP_CS_FIXER_FUTURE_MODE: '1'
@@ -34,16 +35,17 @@ jobs:
3435
run: php-cs-fixer fix --dry-run --diff --ansi
3536

3637
phpstan:
37-
name: PHPStan
38+
name: PHPStan (PHP ${{ matrix.php }})
3839
runs-on: ubuntu-latest
3940
timeout-minutes: 20
4041
strategy:
4142
matrix:
4243
php:
43-
- '7.4'
44+
- '8'
4445
fail-fast: false
4546
env:
4647
APP_DEBUG: '1' # https://github.com/phpstan/phpstan-symfony/issues/37
48+
SYMFONY_PHPUNIT_VERSION: '9.5'
4749
steps:
4850
- name: Checkout
4951
uses: actions/checkout@v2
@@ -69,8 +71,6 @@ jobs:
6971
- name: Require Symfony components
7072
run: composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi
7173
- name: Install PHPUnit
72-
env:
73-
SYMFONY_PHPUNIT_VERSION: '9.5'
7474
run: vendor/bin/simple-phpunit --version
7575
- name: Cache PHPStan results
7676
uses: actions/cache@v2

phpstan.neon.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ parameters:
9393
path: tests/GraphQl/Type/TypesContainerTest.php
9494

9595
# Expected, due to PHP 8 attributes
96-
- '#ReflectionProperty::getAttributes\(\)#'
97-
- '#ReflectionMethod::getAttributes\(\)#'
98-
- '#ReflectionClass<object>::getAttributes\(\)#'
9996
- '#Constructor of class ApiPlatform\\Core\\Annotation\\ApiResource has an unused parameter#'
10097
- '#Constructor of class ApiPlatform\\Core\\Annotation\\ApiProperty has an unused parameter#'
10198

0 commit comments

Comments
 (0)