Skip to content

Commit 043cf3c

Browse files
author
Krzysztof Śmiałek
committed
Fix listing Accounts
1 parent e0add89 commit 043cf3c

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)