-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed typo in method declaration #9154
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
Conversation
Please don't change the API of Add a new method, deprecate the old one, and delegate old to new. |
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.
Hi,
Unfortunately we can not accept this PR in it's current state due to the fact, that backwards compatibility policy prohibits renaming of methods.
Please refer to the comment #9154 (comment) if you really wish to implement the fix.
…the new one in AbstractCarrier
I've modified PR, please let me know if now it's ok. I have a question, in a future minor version (ex. 2.2) the API will be editable or it has to remain unchangeable? |
@ccasciotti - thanks for the change. One more nit, if I may: can you tell others what they should be using instead? Something like Also, removing an interface method is a BC break, as other potential 3rd-party implementations will fail. And BC-breaks should be only made in major versions, not minor. Speaking of which, I don't think M2 considers the I still don't know when they'll clean up all the deprecated code, though. |
@@ -325,6 +325,7 @@ public function checkAvailableShipCountries(\Magento\Framework\DataObject $reque | |||
* | |||
* @param \Magento\Framework\DataObject $request | |||
* @return $this|bool|\Magento\Framework\DataObject | |||
* @deprecated | |||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | |||
*/ | |||
public function proccessAdditionalValidation(\Magento\Framework\DataObject $request) |
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.
This method's phpdoc should just be {@inheritdoc}
, precisely to avoid duplication.
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 agree with you, change done.
@adragus-inviqa i've added the explanation on deprecated method. @ishakhsuvarov i've implemented requested changes |
Hi @ccasciotti Unfortunately, we can not modify existing @api interfaces. |
Hi @ccasciotti So we may accept fix in abstract Thank you for your contribution. But we need to reject this PR. |
Fixed a typo in method declaration, changed
proccessAdditionalValidation
inprocessAdditionalValidation