Skip to content

Commit 6d62cd9

Browse files
author
Trevor Fitzgerald
committed
use phpdotenv v3
1 parent 83239c2 commit 6d62cd9

4 files changed

+8
-7
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sudo: required
44
php:
55
- 7.1
66
- 7.2
7+
- 7.3
78

89
env:
910
matrix:

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
"composer/semver": "^1.4",
2121
"geerlingguy/ping": "^1.1",
2222
"illuminate/support": "5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*",
23-
"vlucas/phpdotenv": "~2.5"
23+
"vlucas/phpdotenv": "^3.3"
2424
},
2525
"require-dev": {
2626
"larapack/dd": "^1.0",
2727
"mockery/mockery": "^1.0",
28-
"orchestra/testbench": "~3.5",
28+
"orchestra/testbench": "^3.8",
29+
"orchestra/testbench-core": "3.8.x-dev",
2930
"phpunit/phpunit": "^7.0",
3031
"predis/predis": "^1.1",
3132
"scrutinizer/ocular": "^1.5"
@@ -43,7 +44,6 @@
4344
"scripts": {
4445
"test": "vendor/bin/phpunit",
4546
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
46-
4747
},
4848
"config": {
4949
"sort-packages": true

src/Checks/ExampleEnvironmentVariablesAreSet.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public function name(array $config): string
2929
*/
3030
public function check(array $config): bool
3131
{
32-
$examples = new Dotenv(base_path(), '.env.example');
32+
$examples = Dotenv::create(base_path(), '.env.example');
3333
$examples->safeLoad();
3434

35-
$actual = new Dotenv(base_path(), '.env');
35+
$actual = Dotenv::create(base_path(), '.env');
3636
$actual->safeLoad();
3737

3838
$this->envVariables = Collection::make($examples->getEnvironmentVariableNames())

src/Checks/ExampleEnvironmentVariablesAreUpToDate.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public function name(array $config): string
2929
*/
3030
public function check(array $config): bool
3131
{
32-
$examples = new Dotenv(base_path(), '.env.example');
32+
$examples = Dotenv::create(base_path(), '.env.example');
3333
$examples->safeLoad();
3434

35-
$actual = new Dotenv(base_path(), '.env');
35+
$actual = Dotenv::create(base_path(), '.env');
3636
$actual->safeLoad();
3737

3838
$this->envVariables = Collection::make($actual->getEnvironmentVariableNames())

0 commit comments

Comments
 (0)