You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Abstractparser/Envabstract.php
+4-7
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@
3
3
namespaceCodervio\Envmanager\Abstractparser;
4
4
5
5
useCodervio\Envmanager\Parser\ParserCollector;
6
-
useException;
7
6
8
7
abstractclass Envabstract
9
8
{
@@ -18,7 +17,7 @@ protected function parseEncoding($data)
18
17
}
19
18
20
19
if (!in_array($this->fileEncoding, mb_list_encodings())) {
21
-
thrownewException(sprintf('Encoding "%s" not found. Check supported encoding using mb_list_encoding() function or use mostly UTF-8 encoding type', $this->fileEncoding));
20
+
thrownew\Exception(sprintf('Encoding "%s" not found. Check supported encoding using mb_list_encoding() function or use mostly UTF-8 encoding type', $this->fileEncoding));
Copy file name to clipboardExpand all lines: src/Envparser.php
+3-1
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ class Envparser extends Envabstract
34
34
protected$override = false;
35
35
36
36
protected$systemparser = array();
37
+
protected$keyresolver;
38
+
protected$parser;
37
39
38
40
private$result;
39
41
@@ -107,7 +109,7 @@ public function checkSuperGlobalsSet()
107
109
if (ini_get('variables_order') === '' || strpos(ini_get('variables_order'), 'G')) {
108
110
returntrue;
109
111
} else {
110
-
thrownewRuntimeException('Warning: Set and create globals for $_ENV is disabled. To enable globally, for console run: \'php -d variables_order=EGPCS php.php\' or set in php.ini directive: variables_order=EGPCS');
112
+
thrownew\RuntimeException('Warning: Set and create globals for $_ENV is disabled. To enable globally, for console run: \'php -d variables_order=EGPCS php.php\' or set in php.ini directive: variables_order=EGPCS');
0 commit comments