Skip to content

Commit 0681cd5

Browse files
author
robindrost
authored
Update IntegrationFieldCollection.php
Make sure the order of the keys is correct after the sort.
1 parent 8eb5d4e commit 0681cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IntegrationFieldCollection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public function toArray()
1717
{
1818
return array_map(function (ModelToIntegrationField $model) {
1919
return $model->toIntegrationField()->toArray();
20-
}, $this->sortByDesc('updated_at')->items);
20+
}, array_values($this->sortByDesc('updated_at')->items));
2121
}
2222
}

0 commit comments

Comments
 (0)