Skip to content

Commit e740589

Browse files
anzinkaryna-t
authored andcommitted
Fixed Integration Test CartTest
1 parent d3b5044 commit e740589

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Quote/Model/ResourceModel

1 file changed

+4
-1
lines changed

app/code/Magento/Quote/Model/ResourceModel/Quote.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ protected function _getLoadSelect($field, $value, $object)
6161
{
6262
$select = parent::_getLoadSelect($field, $value, $object);
6363
$storeIds = $object->getSharedStoreIds();
64+
6465
if ($storeIds) {
65-
if ($storeIds != ['*']) {
66+
// The comparison the arrays [0] != ['*'] returns `true` in PHP >= 8 and `false` otherwise
67+
// This check emulates an old behavior (as it was in PHP 7)
68+
if ($storeIds !== ['*'] && $storeIds !== [0]) {
6669
$select->where('store_id IN (?)', $storeIds);
6770
}
6871
} else {

0 commit comments

Comments
 (0)