mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge branch '1.14' into 2.0
* 1.14: Fix comparison of order items
This commit is contained in:
commit
f9587d25a3
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class OrderItem extends BaseOrderItem implements OrderItemInterface
|
|||
|
||||
public function equals(BaseOrderItemInterface $orderItem): bool
|
||||
{
|
||||
return parent::equals($orderItem) || ($orderItem instanceof static && $orderItem->getVariant() === $this->variant);
|
||||
return parent::equals($orderItem) || ($orderItem instanceof self && $orderItem->getVariant() === $this->variant);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue