Skip to content

Commit 280953b

Browse files
adriendupuismnocon
andauthored
CartCommand.php: Fix getTotalCount desc (#3052)
--------- Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>
1 parent 40e2cd4 commit 280953b

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
@@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5454
$cartsList = $this->cartService->findCarts($cartQuery);
5555

5656
$cartsList->getCarts(); // array of CartInterface objects
57-
$cartsList->getTotalCount(); // number of returned carts
57+
$cartsList->getTotalCount(); // number of matching carts regardless of the limit
5858

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

0 commit comments

Comments
 (0)