问题描述
prolog [04-Nov-2020 18:09:10 UTC] PHP Parse error: syntax error,unexpected 'return' (T_RETURN) in /Signifyd/Connect/Helper/Payment/Default.php on line 274 [04-Nov-2020 18:09:10 UTC] PHP Warning: Unexpected character in input: ' in /Signifyd/Connect/Helper/Payment/Default.php on line 273
我更新了其余的功能,但仍然看不到任何异常。 +++
我在这里没有看到任何错误,第274和273行是public函数的if和返回行:
/**
* @param $cvvResponseCode
* @return null|string
*/
public function filterCvvResponseCode($cvvResponseCode)
{
if (empty($cvvResponseCode)) {
return null;
}
// http://www.emsecommerce.net/cvv_cvv2_response_codes.htm
$validCvvResponseCodes = array('M','N','P','S','U');
$cvvResponseCode = trim(strtoupper($cvvResponseCode));
for ($i = 0; $i < strlen($cvvResponseCode); $i++) {
if (!in_array(substr($cvvResponseCode,$i,1),$validCvvResponseCodes)) {
return null;
}
}
return $cvvResponseCode;
}
/**
我正在运行php 5.6,我知道它已经很旧了,但是我认为它与我的php版本无关。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)