Skip to content

Commit 67d472b

Browse files
Tentative support for PHP 8.0
1 parent df4c4d0 commit 67d472b

File tree

2 files changed

+52
-22
lines changed

2 files changed

+52
-22
lines changed

.travis.yml

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,46 @@
11
language: php
2-
dist: trusty
3-
sudo: false
42

5-
php:
6-
- 5.4
7-
- 5.5
8-
- 5.5.9
9-
- 5.6
10-
- 7.0
11-
- 7.1
12-
- 7.2
13-
- 7.3
14-
- 7.4
15-
- hhvm-3.18
16-
- hhvm-3.30
17-
18-
matrix:
3+
jobs:
194
include:
20-
- php: 5.3
5+
- name: HHVM 3.18
6+
php: hhvm-3.18
7+
dist: trusty
8+
- name: HHVM 3.30
9+
php: hhvm-3.30
10+
dist: trusty
11+
- name: PHP 5.3
12+
php: 5.3
2113
dist: precise
14+
- name: PHP 5.4
15+
php: 5.4
16+
dist: trusty
17+
- name: PHP 5.5
18+
php: 5.5
19+
dist: trusty
20+
- name: PHP 5.6
21+
php: 5.6
22+
dist: xenial
23+
- name: PHP 7.0
24+
php: 7.0
25+
dist: xenial
26+
- name: PHP 7.1
27+
php: 7.1
28+
dist: bionic
29+
- name: PHP 7.2
30+
php: 7.2
31+
dist: bionic
32+
- name: PHP 7.3
33+
php: 7.3
34+
dist: bionic
35+
- name: PHP 7.4
36+
php: 7.4
37+
dist: bionic
38+
- name: PHP 8.0
39+
php: nightly
40+
dist: bionic
2241

23-
install: travis_retry composer install --no-interaction --prefer-source
42+
install:
43+
- if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then travis_retry composer update --no-interaction; fi
44+
- if [ "$TRAVIS_PHP_VERSION" == "nightly" ]; then travis_retry composer update --no-interaction --ignore-platform-reqs; fi
2445

2546
script: vendor/bin/phpunit

composer.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@
22
"name": "vlucas/phpdotenv",
33
"description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
44
"keywords": ["env", "dotenv", "environment"],
5-
"license" : "BSD-3-Clause",
6-
"authors" : [
5+
"license": "BSD-3-Clause",
6+
"authors": [
7+
{
8+
"name": "Graham Campbell",
9+
"email": "[email protected]",
10+
"homepage": "https://gjcampbell.co.uk/"
11+
},
712
{
813
"name": "Vance Lucas",
914
"email": "[email protected]",
10-
"homepage": "http://www.vancelucas.com"
15+
"homepage": "https://vancelucas.com/"
1116
}
1217
],
1318
"require": {
14-
"php": ">=5.3.9",
19+
"php": "^5.3.9 || ^7.0 || ^8.0",
1520
"symfony/polyfill-ctype": "^1.9"
1621
},
1722
"require-dev": {
@@ -28,6 +33,10 @@
2833
"ext-filter": "Required to use the boolean validator.",
2934
"ext-pcre": "Required to use most of the library."
3035
},
36+
"config": {
37+
"preferred-install": "dist",
38+
"platform-check": false
39+
},
3140
"extra": {
3241
"branch-alias": {
3342
"dev-master": "2.6-dev"

0 commit comments

Comments
 (0)