File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 25
25
- name : Install dependencies
26
26
run : composer install --prefer-dist --no-progress --no-suggest
27
27
28
- - name : Check Environment Variable
29
- env :
30
- DOCUMENT_CLOUD_API_KEY : ${{ secrets.DOCUMENT_CLOUD_API_KEY }}
31
- run : echo "DOCUMENT_CLOUD_API_KEY=${{ secrets.DOCUMENT_CLOUD_API_KEY }}"
32
-
33
28
# Run tests
34
29
- name : Run tests
35
30
env :
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function __construct(
48
48
?string $ apiKey = null ,
49
49
?ClientInterface $ client = null ,
50
50
) {
51
- $ apiKey = $ apiKey ?? $ _ENV [ 'DOCUMENT_CLOUD_API_KEY ' ] ?? null ;
51
+ $ apiKey = $ apiKey ?? getenv ( 'DOCUMENT_CLOUD_API_KEY ' ) ?? null ;
52
52
if (!$ apiKey ) {
53
53
throw new MissingApiKeyException ();
54
54
}
You can’t perform that action at this time.
0 commit comments