Skip to content

Commit 9bf98a1

Browse files
spaitnetCoolGoose
authored andcommitted
Update body response
The answer gives "items"
1 parent be3e2df commit 9bf98a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MessageBird/Resources/AvailablePhoneNumbers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function getList($countryCode, $parameters = [])
4848
}
4949
$body = json_decode($body);
5050

51-
$items = $body->data;
52-
unset($body->data);
51+
$items = $body->items;
52+
unset($body->items);
5353

5454
$baseList = new Objects\BaseList();
5555
$baseList->loadFromArray($body);

0 commit comments

Comments
 (0)