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 57b47b7 commit a9df749Copy full SHA for a9df749
src/Syntax/SteamApi/Client.php
@@ -288,7 +288,7 @@ protected function getApiKey()
288
throw new Exceptions\InvalidApiKeyException();
289
}
290
if (is_null($apiKey) || $apiKey == '' || $apiKey == []) {
291
- $apiKey = $_ENV['apiKey'];
+ $apiKey = getenv('apiKey');
292
293
294
return $apiKey;
tests/BaseTester.php
@@ -34,7 +34,7 @@ protected function setUp(): void
34
35
// Use .env when available
36
if (file_exists($root . '/.env')) {
37
- $dotenv = Dotenv::createImmutable($root);
+ $dotenv = Dotenv::createUnsafeImmutable($root);
38
$dotenv->load();
39
40
0 commit comments