-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Resolve model Rss extends wrong class #24183
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
Resolve model Rss extends wrong class #24183
Conversation
Hi @edenduong. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
*/ | ||
class Rss extends \Magento\Framework\Model\AbstractModel | ||
class Rss |
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.
Unfortunately, we can't remove inheritance according to our Backward Compatible Development Guide. Someone can use Rss model in 3d party code and use methods from the \Magento\Framework\Model\AbstractModel
It's better to call the parent constructor here, looks like that call was missed during the refactoring.
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.
@sidolov: I have changed it. Now, I think it following the Backward Compatible Development Guide.
Thank you very much.
382d50c
to
88ee6cf
Compare
Hi @sidolov, thank you for the review.
|
✔️ QA passed |
Hi @edenduong, thank you for your contribution! |
Description (*)
Please see: app/code/Magento/Review/Model/Rss.php
__construct()
is override the parent class, but it doesn't call theparent::__construct()
.Fixed Issues (if relevant)
Manual testing scenarios (*)
Unit test covered.
Questions or comments
Contribution checklist (*)