Skip to content

Commit 82d7b09

Browse files
adriendupuismnocon
andcommitted
CartCommand.php: Fix getTotalCount desc (#3052)
--------- Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
1 parent 30a5c72 commit 82d7b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code_samples/api/commerce/src/Command/CartCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7979
$cartsList = $this->cartService->findCarts($cartQuery);
8080

8181
$cartsList->getCarts(); // array of CartInterface objects
82-
$cartsList->getTotalCount(); // number of returned carts
82+
$cartsList->getTotalCount(); // number of matching carts regardless of the limit
8383

8484
foreach ($cartsList as $cart) {
8585
$output->writeln($cart->getIdentifier() . ': ' . $cart->getName());

0 commit comments

Comments
 (0)