Skip to content

Commit 34b3f61

Browse files
committed
Add support for PHP 8
1 parent 41b9e9b commit 34b3f61

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- "7.2"
2121
- "7.3"
2222
- "7.4"
23+
- "8.0"
2324
os:
2425
- ubuntu-latest
2526
- windows-latest
@@ -38,7 +39,12 @@ jobs:
3839
tools: composer:${{ matrix.composer }}
3940

4041
- name: "Install dependencies"
41-
run: "composer install --no-interaction --no-progress --prefer-dist"
42+
if: "matrix.php-version != '8.0'"
43+
run: "composer update --no-interaction --no-progress --prefer-dist"
44+
45+
- name: "Install dependencies ignoring PHP requirement"
46+
if: "matrix.php-version == '8.0'"
47+
run: "composer update --no-interaction --no-progress --prefer-dist --ignore-platform-req=php"
4248

4349
- name: "Run tests"
4450
run: "php vendor/bin/simple-phpunit --colors=always --testdox"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.1.3",
12+
"php": ">=7.1.3",
1313
"squizlabs/php_codesniffer": "^3.2.3"
1414
},
1515
"require-dev": {

0 commit comments

Comments
 (0)