fix wrong argument type

This commit is contained in:
Daniel Seifert 2024-12-23 15:20:02 +01:00
bovenliggende 9e6329630d
commit 7ddeff8ec5

Bestand weergeven

@ -103,7 +103,7 @@ class Subscriber extends Model
/** /**
* @throws BaseException|GuzzleException * @throws BaseException|GuzzleException
*/ */
public function tag(string $mailAddress, string $tagId): string public function tag(string $mailAddress, array $tagIds): string
{ {
return current( return current(
$this->connection->requestAndParse( $this->connection->requestAndParse(
@ -112,7 +112,8 @@ class Subscriber extends Model
[ [
RequestOptions::FORM_PARAMS => [ RequestOptions::FORM_PARAMS => [
'email' => trim($mailAddress), 'email' => trim($mailAddress),
'tagid' => trim($tagId) //ToDo: apply trim to array
'tagids' => $tagIds
] ]
] ]
) )
@ -159,7 +160,7 @@ class Subscriber extends Model
/** /**
* @throws BaseException|GuzzleException * @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( return current(
$this->connection->requestAndParse( $this->connection->requestAndParse(