From 0d1958d8b68a459ae61e50f7772cb8dc716a806a Mon Sep 17 00:00:00 2001 From: Vasilii Zolotukhin Date: Wed, 18 Sep 2019 17:12:45 +1000 Subject: [PATCH] =?UTF-8?q?Replace=20passing=20=E2=80=9Cby=20value?= =?UTF-8?q?=E2=80=9D=20with=20=E2=80=9Cby=20reference=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api/MailingList/Member.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Api/MailingList/Member.php b/src/Api/MailingList/Member.php index 27068e6..eb99ae0 100644 --- a/src/Api/MailingList/Member.php +++ b/src/Api/MailingList/Member.php @@ -152,7 +152,6 @@ class Member extends HttpApi case 'vars': if (is_array($value)) { $value = json_encode($value); - $parameters[$field] = $value; } // We should assert that "vars"'s $value is a string. // no break @@ -195,12 +194,11 @@ class Member extends HttpApi Assert::stringNotEmpty($address); Assert::isArray($parameters); - foreach ($parameters as $field => $value) { + foreach ($parameters as $field => &$value) { switch ($field) { case 'vars': if (is_array($value)) { $value = json_encode($value); - $parameters[$field] = $value; } // We should assert that "vars"'s $value is a string. // no break