We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd08c35 commit 7ec665cCopy full SHA for 7ec665c
src/main/php/com/amazon/aws/lambda/Environment.class.php
@@ -2,7 +2,7 @@
2
3
use io\Path;
4
use io\streams\StringWriter;
5
-use lang\ElementNotFoundException;
+use lang\{ElementNotFoundException, Environment as System};
6
use util\cmd\Console;
7
use util\{FilesystemPropertySource, PropertyAccess};
8
@@ -17,7 +17,7 @@ class Environment {
17
/** Creates a new environment */
18
public function __construct(string $root, StringWriter $writer= null, array $variables= null) {
19
$this->root= $root;
20
- $this->variables= $variables ?? (PHP_VERSION_ID >= 70100 ? getenv() : $_SERVER);
+ $this->variables= $variables ?? System::variables();
21
$this->writer= $writer ?? Console::$out;
22
$this->properties= new FilesystemPropertySource($root);
23
}
0 commit comments