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
I updated the rest of the function but I still don't see anything wonky. +++
I don't see anything wrong here, line 274 and 273 are the if and the return lines of the public function:
/**
 * @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;
}
/**
I'm running php 5.6 which i know is old but i don't think it has anything to do with my php version.
