Skip to content

Commit 2f84d18

Browse files
authored
Attempt compatibility with PHP8
1 parent a09c599 commit 2f84d18

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
php-versions: ['7.3', '7.4']
31+
php-versions: ['7.3', '7.4', '8.0']
3232

3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v2
3636

3737
- name: Setup PHP, with composer and extensions
38-
uses: shivammathur/setup-php@master
38+
uses: shivammathur/setup-php@v2
3939
with:
4040
php-version: ${{ matrix.php-versions }}
4141
tools: composer
42-
extensions: curl, intl, mbstring, xdebug
42+
extensions: intl, xdebug
4343
coverage: xdebug
4444

4545
- name: Validate composer.json

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.3",
13+
"php": "^7.3 || ^8.0",
1414
"ext-tokenizer": "*",
15-
"friendsofphp/php-cs-fixer": "^2.16"
15+
"friendsofphp/php-cs-fixer": "^2.18"
16+
},
17+
"replace": {
18+
"symfony/polyfill-php70": "*",
19+
"symfony/polyfill-php72": "*",
20+
"symfony/polyfill-php73": "*"
1621
},
1722
"conflict": {
1823
"liaison/cs-config": "*"
1924
},
2025
"require-dev": {
2126
"phpstan/phpstan": "^0.12",
2227
"phpstan/phpstan-strict-rules": "^0.12",
23-
"phpunit/phpunit": "^9.4"
28+
"phpunit/phpunit": "^9.5"
2429
},
2530
"config": {
2631
"optimize-autoloader": true,

0 commit comments

Comments
 (0)