-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Fix Reorder feature #37373
base: 2.4-develop
Are you sure you want to change the base?
Fix Reorder feature #37373
Conversation
Hi @Kaitaka48. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
*/ | ||
public function __construct( | ||
StoreManagerInterface $storeManager, |
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 case if you adding new dependency, it have to go to the end of the list and also have to be backward compartible (so fallback to using ObjectManager have to be added)
@@ -50,21 +53,25 @@ abstract class Reorder extends Action\Action implements HttpPostActionInterface | |||
* @param ReorderHelper|null $reorderHelper | |||
* @param \Magento\Sales\Model\Reorder\Reorder|null $reorder | |||
* @param CheckoutSession|null $checkoutSession | |||
* @param StoreManagerInterface|null $storeManager | |||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | |||
*/ | |||
public function __construct( |
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.
I would also refactor class in the following manner:
https://php.watch/versions/8.0/constructor-property-promotion
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.
Thank you for pointing this out, I have corrected it with reference to the URL。
Committed.
As for Guest/Reorder.php, I have reverted it back to its original state since the above fixes did not require this part to be fixed.
Open #37372
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)