Skip to content

Commit 7b2c136

Browse files
committed
Use Environment::variables() instead of $_ENV
1 parent 7da295f commit 7b2c136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/security/credentials/FromEnvironment.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function named($name) {
4343
*/
4444
public function all($pattern) {
4545
$match= strtoupper(substr($pattern, 0, strrpos($pattern, '*')));
46-
foreach ($_ENV as $name => $value) {
46+
foreach (Environment::variables() as $name => $value) {
4747
if (0 === strncmp($name, $match, strlen($match))) yield strtolower($name) => new Secret($value);
4848
}
4949
}

0 commit comments

Comments
 (0)