Skip to content

Commit 3cbfccd

Browse files
committed
Fix rewriting SelectboxItem to array
1 parent 2888270 commit 3cbfccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SelectboxTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function process(array $data): array
3434
$categories = [];
3535
foreach ($data as $item) {
3636
if ($item instanceof SelectboxItem) {
37-
$categoryItem = $item;
37+
$categoryItem = $item->toArray();
3838
} else {
3939
$categoryItem = [
4040
'id' => $item['id'],

0 commit comments

Comments
 (0)