Skip to content

Commit 8bf79c5

Browse files
authored
Upgrade php-parser and allow 5.8 support (#3)
Upgrade php-parser and allow 5.8 support
2 parents 068e581 + 33a3817 commit 8bf79c5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/dredd-hooks-laravel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (!$loaded) {
3232

3333
// Laravel will not overwrite existing environment variables, so we'll pull in custom ones here
3434
if (file_exists($basePath . '/.env.dredd')) {
35-
$dotenv = new Dotenv\Dotenv($basePath, '.env.dredd');
35+
$dotenv = new Dotenv\Dotenv(new \Dotenv\Loader([$basePath . '/.env.dredd'], new \Dotenv\Environment\DotenvFactory()));
3636
$dotenv->overload();
3737
}
3838

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "package",
55
"require": {
66
"php": ">=7.1",
7-
"nikic/php-parser": "^3.1",
7+
"nikic/php-parser": "^4.2",
88
"ddelnano/dredd-hooks-php": "^1.1"
99
},
1010
"license": "MIT",

server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Laravel will not overwrite existing environment variables, so we'll pull in custom ones here
99
if (file_exists($basePath . '/.env.dredd')) {
10-
$dotenv = new Dotenv\Dotenv($basePath, '.env.dredd');
10+
$dotenv = new Dotenv\Dotenv(new \Dotenv\Loader([$basePath . '/.env.dredd'], new \Dotenv\Environment\DotenvFactory()));
1111
$dotenv->overload();
1212
}
1313

0 commit comments

Comments
 (0)