Skip to content

Commit 830c52b

Browse files
author
Alexandru Bucur
authored
Merge pull request #201 from gronostajo/fix-listing-accounts
Fix listing Accounts
2 parents 951fda2 + 043cf3c commit 830c52b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MessageBird/Resources/PartnerAccount/Accounts.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public function getList(?array $parameters = [])
7373

7474
$return = [];
7575
foreach ($response as &$singleResponse) {
76-
$return[] = $this->getObject()->loadFromStdclass($singleResponse);
76+
$object = clone $this->getObject();
77+
$return[] = $object->loadFromStdclass($singleResponse);
7778
}
7879

7980
return $return;

0 commit comments

Comments
 (0)