Skip to content

Commit

Permalink
Merge pull request #57 from ryanisn/master
Browse files Browse the repository at this point in the history
Update setOrder plugins signature
  • Loading branch information
tuyennn authored Aug 7, 2024
2 parents d4f097f + d9b872d commit abbb098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugin/Model/ResourceModel/Product/CollectionPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CollectionPlugin
public function beforeSetOrder(
Collection $subject,
$attribute,
string $dir = Select::SQL_DESC
$dir = Select::SQL_DESC
): array {
$subject->setFlag('is_processing', true);
$this->applyOutOfStockAtLastOrders($subject);
Expand Down Expand Up @@ -68,7 +68,7 @@ public function aroundSetOrder(
Collection $subject,
callable $proceed,
$attribute,
string $dir = Select::SQL_DESC
$dir = Select::SQL_DESC
): Collection {
$flagName = $this->_getFlag($attribute);
if (!in_array($flagName, $this->skipFlags)) {
Expand Down

0 comments on commit abbb098

Please sign in to comment.