Skip to content

Commit 2aea25a

Browse files
committed
fixed #25 bug
1 parent 917b6ca commit 2aea25a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Configuration/DotEnvConfiguration.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*/
88
namespace JiraRestApi\Configuration;
99

10-
use Dotenv;
11-
1210
/**
1311
* Class DotEnvConfiguration
1412
*
@@ -21,10 +19,9 @@ class DotEnvConfiguration extends AbstractConfiguration
2119
*/
2220
public function __construct($path = '.')
2321
{
24-
Dotenv::load($path);
25-
26-
// not available in dotenv 1.1
27-
// $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
22+
$dotenv = new \Dotenv\Dotenv($path);
23+
$dotenv->load();
24+
$dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
2825

2926
$this->jiraHost = $this->env('JIRA_HOST');
3027
$this->jiraUser = $this->env('JIRA_USER');

0 commit comments

Comments
 (0)