Skip to content

Commit 123ef82

Browse files
committed
downgraded to a phpdotenv version 1.1 for lumen interoperabilty
1 parent 24a1fc2 commit 123ef82

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"php": ">=5.4.0",
88
"netresearch/jsonmapper": "~0.5",
99
"monolog/monolog": "~1.12",
10-
"vlucas/phpdotenv" : "~2.0"
10+
"vlucas/phpdotenv" : "~1.0"
1111
},
1212
"require-dev": {
1313
"phpunit/phpunit": "~4.4"

src/JiraClient.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class JIRAException extends \Exception
99
use Monolog\Logger as Logger;
1010
use Monolog\Handler\StreamHandler;
1111

12+
use Dotenv;
13+
1214
/**
1315
* interact jira server with REST API.
1416
*/
@@ -82,10 +84,10 @@ protected function filterNullVariable($haystack)
8284

8385
public function __construct()
8486
{
85-
$dotenv = new \Dotenv\Dotenv('.');
86-
$dotenv->load();
87+
$dotenv = Dotenv::load('.');
8788

88-
$dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
89+
// not available in dotenv 1.1
90+
// $dotenv->required(['JIRA_HOST', 'JIRA_USER', 'JIRA_PASS']);
8991

9092
$this->json_mapper = new \JsonMapper();
9193
$this->json_mapper->bExceptionOnUndefinedProperty = true;

0 commit comments

Comments
 (0)