Skip to content

Commit 3fbdbc6

Browse files
committed
Merge remote-tracking branch 'anzin/php8-compatibility/fixes-mysql-bind-for-integration-tests' into platform-health
2 parents d2d4c9e + 8ef06f1 commit 3fbdbc6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Category.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,8 @@ public function getProductsPosition($category)
518518
$websiteId
519519
);
520520
}
521-
$bind = ['category_id' => (int)$category->getId()];
522521

523-
return $this->getConnection()->fetchPairs($select, $bind);
522+
return $this->getConnection()->fetchPairs($select);
524523
}
525524

526525
/**

app/code/Magento/Catalog/Model/ResourceModel/Category/Flat.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,7 @@ public function getProductsPosition($category)
714714
$websiteId
715715
);
716716
}
717-
$bind = ['category_id' => (int)$category->getId()];
718717

719-
return $this->getConnection()->fetchPairs($select, $bind);
718+
return $this->getConnection()->fetchPairs($select);
720719
}
721720
}

0 commit comments

Comments
 (0)