Skip to content

Commit b88c484

Browse files
committed
Update package development dependencies
1 parent 2008e26 commit b88c484

File tree

3 files changed

+17
-24
lines changed

3 files changed

+17
-24
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,22 @@ on:
66

77
jobs:
88
linux_tests:
9-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
10-
runs-on: ubuntu-latest
11-
continue-on-error: true
9+
name: PHP on ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.composer-flags }}
10+
runs-on: ubuntu-20.04
1211
strategy:
1312
matrix:
14-
php: ['8.1']
13+
php: ['8.1', '8.2']
1514
stability: [prefer-lowest, prefer-stable]
16-
include:
17-
- php: '8.2'
18-
flags: "--ignore-platform-req=php"
19-
phpunit-flags: '--no-coverage'
20-
stability: prefer-stable
2115
steps:
2216
- name: Checkout code
23-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
2418

2519
- name: Setup PHP
2620
uses: shivammathur/setup-php@v2
2721
with:
2822
php-version: ${{ matrix.php }}
2923
coverage: xdebug
3024
tools: composer:v2
31-
3225
- name: Check PHP Version
3326
run: php -v
3427

@@ -38,8 +31,8 @@ jobs:
3831
- name: Get Composer Cache Directory
3932
id: composer-cache
4033
run: |
41-
echo "::set-output name=dir::$(composer config cache-files-dir)"
42-
- uses: actions/cache@v2
34+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
35+
- uses: actions/cache@v3
4336
with:
4437
path: ${{ steps.composer-cache.outputs.dir }}
4538
key: ${{ runner.os }}-composer-${{ matrix.stability }}-${{ matrix.flags }}-${{ hashFiles('**/composer.lock') }}
@@ -53,10 +46,10 @@ jobs:
5346
- name: Run Unit tests with coverage
5447
run: composer phpunit -- ${{ matrix.phpunit-flags }}
5548

56-
- name: Run PHPStan static analysis
49+
- name: Run static analysis
5750
run: composer phpstan
58-
if: ${{ matrix.php == '8.1' && matrix.stability == 'prefer-stable'}}
51+
if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}}
5952

60-
- name: Run coding style check
61-
run: composer phpcs
53+
- name: Run Coding style rules
54+
run: composer phpcs:fix
6255
if: ${{ matrix.php == '8.1' && matrix.stability == 'prefer-stable'}}

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
'remove_inheritdoc' => true,
2828
'allow_unused_params' => false,
2929
],
30-
'no_trailing_comma_in_singleline_array' => true,
30+
'no_trailing_comma_in_singleline' => true,
3131
'no_unused_imports' => true,
3232
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
3333
'phpdoc_add_missing_param_annotation' => ['only_untyped' => true],

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"ext-json": "*"
2929
},
3030
"require-dev": {
31-
"friendsofphp/php-cs-fixer": "^v3.10.0",
31+
"friendsofphp/php-cs-fixer": "^v3.13.2",
3232
"httpwg/structured-field-tests": "*@dev",
33-
"phpstan/phpstan": "^1.9.2",
33+
"phpstan/phpstan": "^1.9.5",
3434
"phpstan/phpstan-strict-rules": "^1.4.4",
35-
"phpstan/phpstan-phpunit": "^1.2.2",
36-
"phpstan/phpstan-deprecation-rules": "^1.0",
37-
"phpunit/phpunit": "^9.5.26"
35+
"phpstan/phpstan-phpunit": "^1.3.3",
36+
"phpstan/phpstan-deprecation-rules": "^1.1.1",
37+
"phpunit/phpunit": "^9.5.27"
3838
},
3939
"autoload": {
4040
"psr-4": {
@@ -46,7 +46,7 @@
4646
]
4747
},
4848
"scripts": {
49-
"phpcs": "php-cs-fixer fix --dry-run --diff -vvv --allow-risky=yes --ansi",
49+
"phpcs": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --diff -vvv --allow-risky=yes --ansi",
5050
"phpcs:fix": "php-cs-fixer fix -vvv --allow-risky=yes --ansi",
5151
"phpstan": "phpstan analyse -c phpstan.neon --ansi --xdebug --memory-limit 192M",
5252
"phpunit": "XDEBUG_MODE=coverage phpunit --coverage-text",

0 commit comments

Comments
 (0)