Skip to content

Commit 6d3a5a1

Browse files
authored
Merge pull request #66 from ruudk/php82
Run PHP 8.2 on CI
2 parents ab4fd58 + fb20e47 commit 6d3a5a1

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
php-version:
1818
- "8.0"
1919
- "8.1"
20+
- "8.2"
2021
dependencies:
2122
- "lowest"
2223
- "highest"
@@ -35,7 +36,7 @@ jobs:
3536
ini-values: "zend.assertions=1"
3637

3738
- name: "Install dependencies with Composer"
38-
uses: "ramsey/composer-install@v1"
39+
uses: "ramsey/composer-install@v2"
3940
with:
4041
dependency-versions: "${{ matrix.dependencies }}"
4142

@@ -77,7 +78,7 @@ jobs:
7778
strategy:
7879
matrix:
7980
php-version:
80-
- "8.0"
81+
- "8.2"
8182

8283
steps:
8384
- name: "Checkout"
@@ -91,10 +92,10 @@ jobs:
9192
tools: "cs2pr"
9293

9394
- name: "Install dependencies with Composer"
94-
uses: "ramsey/composer-install@v1"
95+
uses: "ramsey/composer-install@v2"
9596

9697
- name: "Install php-cs-fixer"
97-
run: composer require "friendsofphp/php-cs-fixer:^2.16"
98+
run: composer require "friendsofphp/php-cs-fixer:^3.23"
9899

99100
- name: "Run php-cs-fixer"
100101
run: "vendor/bin/php-cs-fixer fix --diff --dry-run -v"

.php_cs renamed to .php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
file that was distributed with this source code.
2121
EOF;
2222

23-
return PhpCsFixer\Config::create()
24-
->setRules([
23+
return (new PhpCsFixer\Config())
24+
->setRules([
2525
'@PSR2' => true,
2626
'array_syntax' => ['syntax' => 'short'],
2727
'no_unreachable_default_argument_value' => false,

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
},
2828
"require-dev": {
2929
"guzzlehttp/promises": "^1.5.0 || ^2.0.0",
30-
"phpunit/phpunit": "^9.5.10",
30+
"phpunit/php-code-coverage": "^9.2.27",
31+
"phpunit/phpunit": "^9.6.11",
3132
"react/promise": "^2.8.0",
3233
"webonyx/graphql-php": "^14.0"
3334
},

0 commit comments

Comments
 (0)