Skip to content

Commit beb6576

Browse files
committed
Fixed static test failures
1 parent 154a80d commit beb6576

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

app/code/Magento/Reports/Model/ResourceModel/Product/Lowstock/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public function joinInventoryItem($fields = [])
227227
}
228228

229229
if (!is_array($fields)) {
230+
// phpstan:ignore
230231
if (empty($fields)) {
231232
$fields = [];
232233
} else {

app/code/Magento/Reports/Model/ResourceModel/Review/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public function addProductFilter($productId)
4545
*/
4646
public function resetSelect()
4747
{
48+
// phpstan:ignore "Call to an undefined static method"
4849
parent::resetSelect();
50+
// phpstan:ignore
4951
$this->_joinFields();
5052
return $this;
5153
}

app/code/Magento/Reports/Model/ResourceModel/Wishlist/Product/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function addWishlistCount()
4242
)->group(
4343
'wi.product_id'
4444
);
45-
45+
// phpstan:ignore
4646
$this->getEntity()->setStore(0);
4747
return $this;
4848
}

0 commit comments

Comments
 (0)