Skip to content

Commit a9df749

Browse files
committed
Reverted to using getenv instead of $_ENV
1 parent 57b47b7 commit a9df749

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Syntax/SteamApi/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ protected function getApiKey()
288288
throw new Exceptions\InvalidApiKeyException();
289289
}
290290
if (is_null($apiKey) || $apiKey == '' || $apiKey == []) {
291-
$apiKey = $_ENV['apiKey'];
291+
$apiKey = getenv('apiKey');
292292
}
293293

294294
return $apiKey;

tests/BaseTester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function setUp(): void
3434

3535
// Use .env when available
3636
if (file_exists($root . '/.env')) {
37-
$dotenv = Dotenv::createImmutable($root);
37+
$dotenv = Dotenv::createUnsafeImmutable($root);
3838
$dotenv->load();
3939
}
4040

0 commit comments

Comments
 (0)