Skip to content

Commit 7c11357

Browse files
authored
Support PHP 8 (#61)
1 parent c8f16d2 commit 7c11357

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/main.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
2323
strategy:
2424
matrix:
25-
php: [7.0, 7.1, 7.2, 7.3, 7.4]
25+
php: [7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
2626
symfony: [3.4, 4, 5]
2727
exclude:
2828
- php: 7.3
2929
symfony: 3.4
3030
- php: 7.4
3131
symfony: 3.4
32+
- php: 8.0
33+
symfony: 3.4
3234
- php: 7.0
3335
symfony: 4
3436
- php: 7.0
@@ -70,9 +72,14 @@ jobs:
7072
path: framework-tests
7173
ref: symfony5
7274

73-
- name: Install Symfony Sample
74-
run: |
75-
composer update --no-dev --prefer-dist --no-interaction
75+
- name: Install Symfony Sample on PHP7
76+
if: matrix.php < 8
77+
run: composer update --no-dev --prefer-dist --no-interaction
78+
working-directory: framework-tests
79+
80+
- name: Install Symfony Sample on PHP8
81+
if: matrix.php == 8.0
82+
run: composer update --no-dev --prefer-dist --no-interaction --ignore-platform-req=php
7683
working-directory: framework-tests
7784

7885
- name: Validate composer.json and composer.lock

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"minimum-stability": "RC",
1414
"require": {
15-
"php": ">=7.0.8 <8.0",
15+
"php": ">=7.0.8 <9.0",
1616
"codeception/lib-innerbrowser": "^1.3",
1717
"codeception/codeception": "^4.0",
1818
"ext-json": "*"

0 commit comments

Comments
 (0)