File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
"php" : " >=5.4.0" ,
8
8
"netresearch/jsonmapper" : " ~0.5" ,
9
9
"monolog/monolog" : " ~1.12" ,
10
- "vlucas/phpdotenv" : " ~2 .0"
10
+ "vlucas/phpdotenv" : " ~1 .0"
11
11
},
12
12
"require-dev" : {
13
13
"phpunit/phpunit" : " ~4.4"
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class JIRAException extends \Exception
9
9
use Monolog \Logger as Logger ;
10
10
use Monolog \Handler \StreamHandler ;
11
11
12
+ use Dotenv ;
13
+
12
14
/**
13
15
* interact jira server with REST API.
14
16
*/
@@ -82,10 +84,10 @@ protected function filterNullVariable($haystack)
82
84
83
85
public function __construct ()
84
86
{
85
- $ dotenv = new \Dotenv \Dotenv ('. ' );
86
- $ dotenv ->load ();
87
+ $ dotenv = Dotenv::load ('. ' );
87
88
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']);
89
91
90
92
$ this ->json_mapper = new \JsonMapper ();
91
93
$ this ->json_mapper ->bExceptionOnUndefinedProperty = true ;
You can’t perform that action at this time.
0 commit comments