Skip to content

Commit 0885bd4

Browse files
committed
fix: 更新支付通知接收参数类型问题,支持 null 自动获取
1 parent 1f0b17f commit 0885bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WePayV3/Order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ public function close($tradeNo)
104104

105105
/**
106106
* 支付通知解析
107-
* @param array $data
107+
* @param array|null $data
108108
* @return array
109109
* @throws \WeChat\Exceptions\InvalidDecryptException
110110
*/
111-
public function notify(array $data = [])
111+
public function notify($data = [])
112112
{
113113
if (empty($data)) {
114114
$data = json_decode(Tools::getRawInput(), true);

0 commit comments

Comments
 (0)