Skip to content

Commit

Permalink
minor #11643 Update custom-redirect-after-cart-add-action.rst (danakil)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.7 branch.

Discussion
----------

Fixed a typo in sprintf format ("$s" instead of "%s") in the "custom-redirect-after-cart-add-action" cookbook.

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT



Commits
-------

102360d Update custom-redirect-after-cart-add-action.rst
  • Loading branch information
lchrusciel committed Jul 15, 2020
2 parents 880e801 + 102360d commit 2d39e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Let's assume that you would like such a feature in your system:
{
if (!$event->getSubject() instanceof OrderItemInterface) {
throw new \LogicException(
sprintf('This listener operates only on order item, got "$s"', get_class($event->getSubject()))
sprintf('This listener operates only on order item, got "%s"', get_class($event->getSubject()))
);
}
Expand Down

0 comments on commit 2d39e0c

Please sign in to comment.