/** * Show Stream Extension Warning (stream_socket_enable_crypto is not supported in HHVM). * * @return true */ private function showStreamExtensionWarning() { if (!is_testing()) { error_log('Warning: ' . (is_hhvm() ? 'The HHVM (HipHop VM)' : 'This version of PHP') . ' does not support checking SSL certificates Stripe cannot guarantee that the server has a ' . 'certificate which is not blacklisted.'); } return true; }
/** * Show undefined property warning message. * * @param string $class * @param string $key */ private function showUndefinedPropertyMsg($class, $key) { $message = "Stripe Notice: Undefined property of {$class} instance: {$key}."; if (!$this->transientValues->isEmpty() && $this->transientValues->includes($key)) { $message .= " HINT: The [{$key}] attribute was set in the past, however. " . 'It was then wiped when refreshing the object with the result returned by Stripe\'s API, ' . 'probably as a result of a save().' . $this->showUndefinedPropertyMsgAttributes(); } if (!is_testing()) { error_log($message); } }