Skip to content

Commit b63c2f5

Browse files
ADmadNyholm
andauthored
Allow installing on PHP 8. (#45)
* Allow installing on PHP 8. * Update .travis.yml Co-authored-by: Tobias Nyholm <[email protected]>
1 parent 32edda9 commit b63c2f5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ cache:
99
php:
1010
- 7.2
1111
- 7.3
12+
- 7.4
13+
- 'nightly'
1214

1315
env:
1416
global:
@@ -29,7 +31,12 @@ before_install:
2931
- iphpenv config-rm xdebug.ini || true
3032

3133
install:
32-
- travis_retry composer update --prefer-dist --no-interaction
34+
- |
35+
if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
36+
travis_retry composer update --prefer-dist --no-interaction --ignore-platform-reqs
37+
else
38+
travis_retry composer update --prefer-dist --no-interaction
39+
fi
3340
3441
script:
3542
- $TEST_COMMAND --testsuite $SUITE

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^7.2",
18-
"phpunit/phpunit": "^8.0",
17+
"php": "^7.2 || ^8.0",
18+
"phpunit/phpunit": "^8.0 || ^9.3",
1919
"psr/http-message": "^1.0"
2020
},
2121
"require-dev": {

0 commit comments

Comments
 (0)