From 67d472b1794c986381a8950e4958e1adb779d561 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 2 May 2020 14:38:00 +0100 Subject: [PATCH] Tentative support for PHP 8.0 --- .travis.yml | 57 +++++++++++++++++++++++++++++++++++---------------- composer.json | 17 +++++++++++---- 2 files changed, 52 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb6c159f..e28d676e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,46 @@ language: php -dist: trusty -sudo: false -php: - - 5.4 - - 5.5 - - 5.5.9 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - hhvm-3.18 - - hhvm-3.30 - -matrix: +jobs: include: - - php: 5.3 + - name: HHVM 3.18 + php: hhvm-3.18 + dist: trusty + - name: HHVM 3.30 + php: hhvm-3.30 + dist: trusty + - name: PHP 5.3 + php: 5.3 dist: precise + - name: PHP 5.4 + php: 5.4 + dist: trusty + - name: PHP 5.5 + php: 5.5 + dist: trusty + - name: PHP 5.6 + php: 5.6 + dist: xenial + - name: PHP 7.0 + php: 7.0 + dist: xenial + - name: PHP 7.1 + php: 7.1 + dist: bionic + - name: PHP 7.2 + php: 7.2 + dist: bionic + - name: PHP 7.3 + php: 7.3 + dist: bionic + - name: PHP 7.4 + php: 7.4 + dist: bionic + - name: PHP 8.0 + php: nightly + dist: bionic -install: travis_retry composer install --no-interaction --prefer-source +install: + - if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then travis_retry composer update --no-interaction; fi + - if [ "$TRAVIS_PHP_VERSION" == "nightly" ]; then travis_retry composer update --no-interaction --ignore-platform-reqs; fi script: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 264f88b7..abe5a14b 100644 --- a/composer.json +++ b/composer.json @@ -2,16 +2,21 @@ "name": "vlucas/phpdotenv", "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", "keywords": ["env", "dotenv", "environment"], - "license" : "BSD-3-Clause", - "authors" : [ + "license": "BSD-3-Clause", + "authors": [ + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "homepage": "https://gjcampbell.co.uk/" + }, { "name": "Vance Lucas", "email": "vance@vancelucas.com", - "homepage": "http://www.vancelucas.com" + "homepage": "https://vancelucas.com/" } ], "require": { - "php": ">=5.3.9", + "php": "^5.3.9 || ^7.0 || ^8.0", "symfony/polyfill-ctype": "^1.9" }, "require-dev": { @@ -28,6 +33,10 @@ "ext-filter": "Required to use the boolean validator.", "ext-pcre": "Required to use most of the library." }, + "config": { + "preferred-install": "dist", + "platform-check": false + }, "extra": { "branch-alias": { "dev-master": "2.6-dev"