Skip to content

Commit f271715

Browse files
committed
fix for env vars
1 parent 7410a89 commit f271715

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/phpunit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
php-version: 8.3
2222
tools: composer
23+
ini-values: variables_order=EGPCS
2324

2425
# Install dependencies
2526
- name: Install dependencies

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
?string $apiKey = null,
4949
?ClientInterface $client = null,
5050
) {
51-
$apiKey = $apiKey ?? getenv('DOCUMENT_CLOUD_API_KEY') ?? null;
51+
$apiKey = $apiKey ?? $_ENV['DOCUMENT_CLOUD_API_KEY'] ?? null;
5252
if (!$apiKey) {
5353
throw new MissingApiKeyException();
5454
}

0 commit comments

Comments
 (0)