From 4acfd6a4b33a509d8c88f50e5222f734b6aeebae Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 21 Mar 2020 18:07:53 +0000 Subject: [PATCH] PHP 8 Support (#55) --- .travis.yml | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8062ee4..68fe928 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,10 @@ matrix: dist: bionic install: travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:7.4 install --no-suggest --prefer-dist -n -o script: docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:7.4 + - name: PHP 8.0 + dist: bionic + install: travis_retry docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint composer registry.gitlab.com/grahamcampbell/php:8.0 install --ignore-platform-reqs --no-suggest --prefer-dist -n -o + script: docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit registry.gitlab.com/grahamcampbell/php:8.0 - name: PHPStan dist: bionic install: diff --git a/composer.json b/composer.json index f43df5a..77868bd 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": "^5.5.9 || ^7.0" + "php": "^5.5.9 || ^7.0 || ^8.0" }, "require-dev": { "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0",