Try to fix cti

This commit is contained in:
Laurent Destailleur 2024-04-29 11:32:54 +02:00
parent 2bd6b32974
commit d3fe7fca09

View file

@ -228,8 +228,7 @@ class InterfaceStripe extends DolibarrTriggers
dol_syslog("We got the customer, so now we update the credit card", LOG_DEBUG);
$card = $stripe->cardStripe($customer, $object, $stripeacc, $servicestatus);
if ($card) {
// @phan-suppress-next-line PhanTypeMismatchPropertyProbablyReal
// @phpstan-ignore-next-line
// @phpstan-ignore-next-line @phan-suppress-next-line PhanTypeMismatchPropertyProbablyReal
$card->metadata = array('dol_id' => $object->id, 'dol_version' => DOL_VERSION, 'dol_entity' => $conf->entity, 'ipaddress' => (empty($_SERVER['REMOTE_ADDR']) ? '' : $_SERVER['REMOTE_ADDR']));
try {
// @phan-suppress-next-line PhanDeprecatedFunction