Skip to content

Commit

Permalink
Allow installing on PHP 8. (#45)
Browse files Browse the repository at this point in the history
* Allow installing on PHP 8.

* Update .travis.yml

Co-authored-by: Tobias Nyholm <[email protected]>
  • Loading branch information
ADmad and Nyholm authored Oct 17, 2020
1 parent 32edda9 commit b63c2f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ cache:
php:
- 7.2
- 7.3
- 7.4
- 'nightly'

env:
global:
Expand All @@ -29,7 +31,12 @@ before_install:
- iphpenv config-rm xdebug.ini || true

install:
- travis_retry composer update --prefer-dist --no-interaction
- |
if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
travis_retry composer update --prefer-dist --no-interaction --ignore-platform-reqs
else
travis_retry composer update --prefer-dist --no-interaction
fi
script:
- $TEST_COMMAND --testsuite $SUITE
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
}
],
"require": {
"php": "^7.2",
"phpunit/phpunit": "^8.0",
"php": "^7.2 || ^8.0",
"phpunit/phpunit": "^8.0 || ^9.3",
"psr/http-message": "^1.0"
},
"require-dev": {
Expand Down

0 comments on commit b63c2f5

Please sign in to comment.