File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/CatalogUrlRewrite/Model/Category/Plugin/Store Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ public function afterSave(
106
106
): Store {
107
107
if ($ this ->origStore ->isObjectNew () || $ this ->origStore ->dataHasChangedFor ('group_id ' )) {
108
108
$ categoryRewriteUrls = $ this ->generateCategoryUrls (
109
- $ this ->origStore ->getRootCategoryId (),
110
- $ this ->origStore ->getId ()
109
+ ( int ) $ this ->origStore ->getRootCategoryId (),
110
+ ( int ) $ this ->origStore ->getId ()
111
111
);
112
112
113
113
$ this ->urlPersist ->replace ($ categoryRewriteUrls );
@@ -135,7 +135,7 @@ protected function generateProductUrls(int $storeId): array
135
135
->addAttributeToSelect (['name ' , 'url_path ' , 'url_key ' , 'visibility ' ])
136
136
->addStoreFilter ($ storeId );
137
137
foreach ($ collection as $ product ) {
138
- /** @var \Magento\Catalog\Model\ Product $product */
138
+ /** @var Product $product */
139
139
$ product ->setStoreId ($ storeId );
140
140
$ urls [] = $ this ->productUrlRewriteGenerator ->generate ($ product );
141
141
}
You can’t perform that action at this time.
0 commit comments