Skip to content

Commit 4f1c318

Browse files
committed
Update vlucas/phpdotenv to v5
1 parent 21dd959 commit 4f1c318

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"nunomaduro/collision": "^4.2",
3030
"phpunit/phpunit": "^8.0 || ^9.0",
3131
"symfony/var-dumper": "^4.4 || ^5.0",
32-
"vlucas/phpdotenv": "^4.0"
32+
"vlucas/phpdotenv": "^5.0"
3333
},
3434
"config": {
3535
"sort-packages": true

tests/Feature/Endpoints/AuthenticationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public function it_can_retrieve_an_access_token()
1818
(new Parser)->parse($accessToken->token)->validate(new ValidationData())
1919
);
2020
$this->assertFalse($accessToken->isExpired());
21-
$this->assertEquals(getenv('DHLPARCEL_ACCOUNT_ID'), $accessToken->getAccountId());
21+
$this->assertEquals($_ENV['DHLPARCEL_ACCOUNT_ID'], $accessToken->getAccountId());
2222
}
2323
}

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ protected function setUp(): void
2121
}
2222

2323
$this->client = (new Client)->setUserId(
24-
getenv('DHLPARCEL_ID')
24+
$_ENV['DHLPARCEL_ID']
2525
)->setApiKey(
26-
getenv('DHLPARCEL_SECRET')
26+
$_ENV['DHLPARCEL_SECRET']
2727
);
2828

2929
parent::setUp();

0 commit comments

Comments
 (0)