From 7ddeff8ec5ccc6cb58f33fd7060be6b3dc7fa36e Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 23 Dec 2024 15:20:02 +0100 Subject: [PATCH] fix wrong argument type --- src/Resources/Subscriber.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Resources/Subscriber.php b/src/Resources/Subscriber.php index 15c94c9..7a82bec 100644 --- a/src/Resources/Subscriber.php +++ b/src/Resources/Subscriber.php @@ -103,7 +103,7 @@ class Subscriber extends Model /** * @throws BaseException|GuzzleException */ - public function tag(string $mailAddress, string $tagId): string + public function tag(string $mailAddress, array $tagIds): string { return current( $this->connection->requestAndParse( @@ -112,7 +112,8 @@ class Subscriber extends Model [ RequestOptions::FORM_PARAMS => [ 'email' => trim($mailAddress), - 'tagid' => trim($tagId) + //ToDo: apply trim to array + 'tagids' => $tagIds ] ] ) @@ -159,7 +160,7 @@ class Subscriber extends Model /** * @throws BaseException|GuzzleException */ - public function update(string $subscriberId, array $fields, string $newEmail, string $newSmsNumber): string + public function update(string $subscriberId, array $fields, string $newEmail = '', string $newSmsNumber = ''): string { return current( $this->connection->requestAndParse(