| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function countByVariant(ProductVariantInterface $variant): int |
||
| 29 | { |
||
| 30 | $qb = $this->baseOrderItemRepository->createQueryBuilder('i'); |
||
| 31 | $qb->select('SUM(i.quantity)') |
||
| 32 | ->where('i.variant = :variant') |
||
| 33 | ->setParameter('variant', $variant) |
||
| 34 | ; |
||
| 35 | |||
| 36 | return (int) ($qb->getQuery()->getSingleScalarResult()); |
||
| 37 | } |
||
| 39 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..