We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 655c733 commit 49e464aCopy full SHA for 49e464a
src/Repository/OrderItemRepository.php
@@ -25,7 +25,7 @@ public function __construct(
25
26
public function countByVariant(ProductVariantInterface $variant, array $orderStates = []): int
27
{
28
- if ([] !== $orderStates) {
+ if ([] === $orderStates) {
29
$orderStates = [OrderInterface::STATE_CANCELLED, OrderInterface::STATE_CART];
30
}
31
0 commit comments