@@ -100,7 +100,7 @@ private function retrieveCategories(int $storeId = 0, $toOptionArray = true): ar
100
100
$ options [] = [
101
101
'label ' => $ rootCategory ->getName (),
102
102
'value ' => $ rootCategory ->getId (),
103
- 'store_id ' => $ storeId ,
103
+ 'store_id ' => ( string ) $ storeId ,
104
104
];
105
105
} else {
106
106
$ options [$ rootCategory ->getId ()] = $ rootCategory ->getName ();
@@ -112,7 +112,7 @@ private function retrieveCategories(int $storeId = 0, $toOptionArray = true): ar
112
112
$ groupedOptions [] = [
113
113
'label ' => $ category ->getName (),
114
114
'value ' => $ category ->getId (),
115
- 'store_id ' => $ storeId ,
115
+ 'store_id ' => ( string ) $ storeId ,
116
116
];
117
117
} else {
118
118
$ options [$ category ->getId ()] = $ category ->getName ();
@@ -123,7 +123,7 @@ private function retrieveCategories(int $storeId = 0, $toOptionArray = true): ar
123
123
$ options [] = [
124
124
'label ' => __ ('Sub categories ' ),
125
125
'value ' => $ groupedOptions ,
126
- 'store_id ' => $ storeId ,
126
+ 'store_id ' => ( string ) $ storeId ,
127
127
];
128
128
}
129
129
}
0 commit comments