Skip to content

Commit

Permalink
Merge pull request #66 from XueSiLf/master
Browse files Browse the repository at this point in the history
fix: Adapt to php8.1
  • Loading branch information
XueSiLf authored Jul 9, 2024
2 parents 65ee68c + fb59a49 commit f5ce899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WeChat/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function request(string $endpoint, Base $bean, bool $useCert = false): st
$bean->setMchId($this->config->getMchId()); // 商家号mch_id
}
$bean->setSign($this->generateSign($bean->toArray()));
$xml = (new SplArray($bean->toArray(null,$bean::FILTER_NOT_NULL)))->toXML(true);
$xml = (new SplArray($bean->toArray($bean::FILTER_NOT_NULL)))->toXML(true);
$response = NewWork::postXML($this->config->getGateWay() . $endpoint,$xml , $useCert ? [
'ssl_cert_file' => $this->config->getApiClientCert(),
'ssl_key_file' => $this->config->getApiClientKey()]
Expand Down

0 comments on commit f5ce899

Please sign in to comment.