We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b9afa commit 168e78eCopy full SHA for 168e78e
src/MessageBird/Resources/Base.php
@@ -168,13 +168,20 @@ public function getList(?array $parameters = [])
168
169
$objectName = $this->object;
170
171
+ $baseList->items = [];
172
+
173
+ if ($items === null) {
174
+ return $baseList;
175
+ }
176
177
foreach ($items as $item) {
178
/** @psalm-suppress UndefinedClass */
179
$object = new $objectName($this->httpClient);
180
181
$message = $object->loadFromArray($item);
182
$baseList->items[] = $message;
183
}
184
185
return $baseList;
186
187
0 commit comments