File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/CatalogUrlRewrite/Observer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public function generateProductUrlRewrites(Category $category): array
125
125
{
126
126
$ mergeDataProvider = clone $ this ->mergeDataProviderPrototype ;
127
127
$ this ->isSkippedProduct [$ category ->getEntityId ()] = [];
128
- $ saveRewriteHistory = $ category ->getData ('save_rewrites_history ' );
128
+ $ saveRewriteHistory = ( bool ) $ category ->getData ('save_rewrites_history ' );
129
129
$ storeId = (int )$ category ->getStoreId ();
130
130
131
131
if ($ category ->getChangedProductIds ()) {
@@ -231,14 +231,14 @@ private function getCategoryProductsUrlRewrites(
231
231
* @param MergeDataProvider $mergeDataProvider
232
232
* @param Category $category
233
233
* @param int $storeId
234
- * @param $saveRewriteHistory
234
+ * @param bool $saveRewriteHistory
235
235
* @return void
236
236
*/
237
237
private function generateChangedProductUrls (
238
238
MergeDataProvider $ mergeDataProvider ,
239
239
Category $ category ,
240
240
int $ storeId ,
241
- $ saveRewriteHistory
241
+ bool $ saveRewriteHistory
242
242
) {
243
243
$ this ->isSkippedProduct [$ category ->getEntityId ()] = $ category ->getAffectedProductIds ();
244
244
You can’t perform that action at this time.
0 commit comments