Skip to content

Commit

Permalink
给 getClient() 增加 Client 类型的返回 (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcxzyang authored Feb 27, 2025
1 parent 1edcacd commit 511e15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pay/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function getConfig(): ConfigInterface
* @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
* @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
*/
public function getClient(): HttpClientInterface
public function getClient(): Client|HttpClientInterface
{
return $this->client ?? $this->client = (new Client(
$this->getMerchant(),
Expand Down

0 comments on commit 511e15d

Please sign in to comment.