Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/379
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 5, 2024
1 parent f55b8bc commit e0aea23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/local/HCG/MailChimp/Tags/ProcessMergeFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static function p(array $data, bool $subscribe = false):void {
$i->_setMailchimpTagsToCustomer();
}
$sub = hcg_mc_sub($listId, $email); /** @var Sub $sub */
# 2024-06-06 https://3v4l.org/HFAUZ
# 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379
[$fname, $lname] = [$i->mcByCA('firstname'), $i->mcByCA('lastname')]; /** @var string $fname */ /** @var string $lname */
if ($sub->getId()) {
if ($sub->getStatus() != Sub::STATUS_SUBSCRIBED && $subscribe) {
Expand Down

0 comments on commit e0aea23

Please sign in to comment.