Skip to content

Commit

Permalink
Fix phpstan issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 5, 2022
1 parent 5d1aca2 commit 63f7551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Pay/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ public static function createMockClient(MockHttpClient $mockHttpClient): HttpCli
{
$mockMerchant = new Merchant(
'mch_id',
/** @phpstan-ignore-next-line*/
\Mockery::mock(PrivateKey::class),
/** @phpstan-ignore-next-line*/
\Mockery::mock(PublicKey::class),
'mock-v3-key',
'mock-v2-key',
Expand Down
2 changes: 1 addition & 1 deletion src/Pay/ResponseValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function validate(ResponseInterface $response): void
if (false === \openssl_verify(
$message,
\base64_decode($signature),
$publicKey,
\strval($publicKey),
\OPENSSL_ALGO_SHA256
)) {
throw new BadResponseException('Invalid Signature', $response);
Expand Down

1 comment on commit 63f7551

@vercel
Copy link

@vercel vercel bot commented on 63f7551 Mar 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.