Skip to content

Commit 66e0919

Browse files
author
Martyna Maciejewska
committed
SMM-8 Cast to string
1 parent a0d4a5c commit 66e0919

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Ui/Component/Menu/Form/Element/Categories.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function retrieveCategories(int $storeId = 0, $toOptionArray = true): ar
100100
$options[] = [
101101
'label' => $rootCategory->getName(),
102102
'value' => $rootCategory->getId(),
103-
'store_id' => $storeId,
103+
'store_id' => (string) $storeId,
104104
];
105105
} else {
106106
$options[$rootCategory->getId()] = $rootCategory->getName();
@@ -112,7 +112,7 @@ private function retrieveCategories(int $storeId = 0, $toOptionArray = true): ar
112112
$groupedOptions[] = [
113113
'label' => $category->getName(),
114114
'value' => $category->getId(),
115-
'store_id' => $storeId,
115+
'store_id' => (string) $storeId,
116116
];
117117
} else {
118118
$options[$category->getId()] = $category->getName();
@@ -123,7 +123,7 @@ private function retrieveCategories(int $storeId = 0, $toOptionArray = true): ar
123123
$options[] = [
124124
'label' => __('Sub categories'),
125125
'value' => $groupedOptions,
126-
'store_id' => $storeId,
126+
'store_id' => (string) $storeId,
127127
];
128128
}
129129
}

0 commit comments

Comments
 (0)