Skip to content

Commit

Permalink
Add fix for phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonKostrubiec committed Jul 9, 2024
1 parent d6a7421 commit 9d2bbc6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Repository/OrderItemRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ public function countByVariant(ProductVariantInterface $variant, array $orderSta
$orderStates = [OrderInterface::STATE_CANCELLED, OrderInterface::STATE_CART];
}

/** @var EntityRepository $baseOrderItemRepository */
$baseOrderItemRepository = $this->baseOrderItemRepository;

return (int) ($baseOrderItemRepository
return (int) ($this->baseOrderItemRepository

Check failure on line 32 in src/Repository/OrderItemRepository.php

View workflow job for this annotation

GitHub Actions / Sylius v1.13.3, PHP 8.1, Symfony ^6.4

Call to an undefined method BitBag\SyliusElasticsearchPlugin\Repository\OrderItemRepositoryInterface|Doctrine\ORM\EntityRepository::createQueryBuilder().
->createQueryBuilder('oi')
->select('SUM(oi.quantity)')
->join('oi.order', 'o')
Expand Down

0 comments on commit 9d2bbc6

Please sign in to comment.