Skip to content

Commit

Permalink
[Psalm] remove redundant cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Apr 21, 2024
1 parent 709444a commit ab2fdbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoreShop/Bundle/OrderBundle/Manager/CartManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function persistCart(OrderInterface $cart/*, array $params = []*/): void
['prefix' => $cart->getFullPath()],
),
);
$item->setKey(uniqid(sprintf('%s.', ((int) $index + 1)), true));
$item->setKey(uniqid(sprintf('%s.', $index + 1), true));
$item->setPublished(true);
$item->save();
}
Expand Down

0 comments on commit ab2fdbe

Please sign in to comment.