Skip to content

Commit

Permalink
Psalm and phpunit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbalcerzak committed Sep 19, 2022
1 parent 7216807 commit 7a668dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Client/AdyenTransportFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public function create(array $options): Client
if (AdyenClientInterface::TEST_ENVIRONMENT == $options['environment']) {
$client->setEnvironment(Environment::TEST);
} else {
$client->setEnvironment(Environment::LIVE, $options['liveEndpointUrlPrefix']);
/** @var string $prefix */
$prefix = $options['liveEndpointUrlPrefix'];
$client->setEnvironment(Environment::LIVE, $prefix);
}
$client->setTimeout(30);

Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Validator/AdyenCredentialsValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function testAffirmative(): void
'environment' => AdyenClientInterface::TEST_ENVIRONMENT,
'merchantAccount' => 'mer',
'apiKey' => 'api',
'liveEndpointUrlPrefix' => 'prefix',
], $constraint);

$this->assertNoViolation();
Expand Down

0 comments on commit 7a668dd

Please sign in to comment.