-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] Order recalculation clean-up #4551
[Core] Order recalculation clean-up #4551
Conversation
} | ||
|
||
function it_uses_order_recalculator_to_recalculate_order( | ||
$orderRecalculator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this spec you have used Typehint for properties given in constructor, but here you haven't use this approach. Can you unified them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
8b1d59f
to
0372c52
Compare
/** | ||
* @param InteractiveLoginEvent $event | ||
*/ | ||
public function recalculateCartWhileInteractiveLogin(InteractiveLoginEvent $event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're not using $event
at all we can typehint to Symfony\Component\EventDispatcher\Event
class and have one method for both events ;)
58f02a0
to
a805e28
Compare
👍 |
Also some fixes in specs.
a805e28
to
0e4a3d5
Compare
👍 |
Nice work Mateusz! 👍 |
OrderRecalculator
OrderRecalculator
asOrder
state machine callbacksOrder