We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我使用的php版本是5.3.10 调用文件出错 1、 Wechat/Utils/SignGenerator.php public function onSortAfter(callable $callback) 中callable
解决办法:去掉 callable 2、 Wechat/Payment/UnifiedOrder.php 中$this 变量范围, 使用use的话也会报错的 Fatal error: Cannot use $this as lexical variable in
$signGenerator->onSortAfter(function(SignGenerator $that) { $that->key = $this->business->mch_key; });
解决办法: $tmp=$this; $signGenerator->onSortAfter(function(SignGenerator $that) use($tmp) { $that->key = $tmp->business->mch_key; });
The text was updated successfully, but these errors were encountered:
@mickelfeng 感谢反馈!5db4708
Sorry, something went wrong.
php版本必须是 >= 5.5.9吗?5.4可以用吧?
@phpyii 3.0 要求 >= 5.5.9, 2.1 >=5.3就好
No branches or pull requests
我使用的php版本是5.3.10 调用文件出错
1、
Wechat/Utils/SignGenerator.php
public function onSortAfter(callable $callback) 中callable
解决办法:去掉 callable
2、
Wechat/Payment/UnifiedOrder.php 中$this 变量范围, 使用use的话也会报错的
Fatal error: Cannot use $this as lexical variable in
解决办法:
$tmp=$this;
$signGenerator->onSortAfter(function(SignGenerator $that) use($tmp) {
$that->key = $tmp->business->mch_key;
});
The text was updated successfully, but these errors were encountered: