Skip to content

Commit 36262c8

Browse files
committed
Allow php8
1 parent 290b0e4 commit 36262c8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
- '7.2'
1010
- '7.3'
1111
- '7.4'
12+
- '8.0'
1213

1314
name: PHP ${{ matrix.php-version }}
1415

@@ -31,6 +32,14 @@ jobs:
3132

3233
- name: Install dependencies
3334
run: composer install
35+
if: matrix.php-version != '8.0'
36+
37+
- name: Update dependencies
38+
run: |
39+
rm composer.lock
40+
composer remove --dev --no-update friendsofphp/php-cs-fixer
41+
composer update
42+
if: matrix.php-version == '8.0'
3443

3544
- name: Setup problem matchers for PHP
3645
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"require": {
27-
"php": "^7.2",
27+
"php": "^7.2 || ^8.0",
2828
"ext-json": "*",
2929
"psr/http-server-middleware": "^1.0",
3030
"webonyx/graphql-php": "^14.3"

0 commit comments

Comments
 (0)