Skip to content

Commit 89fb671

Browse files
Merge pull request #26 from stevegrunwell/feature/php80
PHP 8.0 compatibility
2 parents 58ca161 + 142f418 commit 89fb671

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ubuntu-latest]
11-
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
11+
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
1212
name: PHP ${{ matrix.php-versions }}
1313

1414
steps:
@@ -17,7 +17,6 @@ jobs:
1717

1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
20-
if: ${{ matrix.php != '7.4' }}
2120
with:
2221
php-version: ${{ matrix.php-versions }}
2322
coverage: none
@@ -37,5 +36,4 @@ jobs:
3736
run: composer install --no-interaction --prefer-dist --no-suggest --no-progress
3837

3938
- name: Run test suite
40-
if: ${{ matrix.php != '7.4' }}
4139
run: composer test

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"source": "https://github.com/stevegrunwell/phpunit-markup-assertions/"
1616
},
1717
"require": {
18-
"laminas/laminas-dom": "^2.7"
18+
"php": "^5.6 || ^7.0 || ^8.0",
19+
"laminas/laminas-dom": "~2.7.2 || ^2.8"
1920
},
2021
"require-dev": {
2122
"symfony/phpunit-bridge": "^5.2"
@@ -44,9 +45,6 @@
4445
},
4546
"config": {
4647
"preferred-install": "dist",
47-
"sort-packages": true,
48-
"platform": {
49-
"php": "7.4"
50-
}
48+
"sort-packages": true
5149
}
5250
}

0 commit comments

Comments
 (0)