Skip to content
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

Added sniff for deprecated model methods. #187 #189

Merged
merged 6 commits into from
Aug 17, 2020

Conversation

milindsingh
Copy link
Member

Added sniff for #187 to discourage the use of Resource class from Model class.

Trigger Methods:

  • getResource()->load($object)
  • getResource()->save($object)
  • getResource()->delete($object)

Message: Possible use of the deprecated model method 'getResource()' to 'save' the data detected.

@m2-community-project m2-community-project bot moved this from Ready for Review to Review in Progress in Pull Request Progress May 26, 2020
Copy link
Contributor

@lenaorobei lenaorobei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address review comments.

@milindsingh
Copy link
Member Author

milindsingh commented Aug 17, 2020

Thanks @ihor-sviziev
@lenaorobei I think its good to merge now.

Also, Is there any way to change labels to Partner: Born Group partners-contribution ?

ihor-sviziev
ihor-sviziev previously approved these changes Aug 17, 2020
@lenaorobei
Copy link
Contributor

Great! Thanks @ihor-sviziev. Let me run this test again Magento codebase and make sure it does not produce false positive findings.

@lenaorobei lenaorobei merged commit edca711 into magento:develop Aug 17, 2020
@m2-community-project m2-community-project bot moved this from Review in Progress to Done in Pull Request Progress Aug 17, 2020
magento-devops-reposync-svc pushed a commit that referenced this pull request Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants