-
Notifications
You must be signed in to change notification settings - Fork 160
AC-676: Create phpcs static check for ObsoleteConnectionTest #310
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
AC-676: Create phpcs static check for ObsoleteConnectionTest #310
Conversation
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.
Thanks for the PR @eliseacornejo , please see my comment.
foreach ($this->obsoleteMethods as $method) { | ||
if ($tokens[$stringPos]['content'] === $method) { | ||
$phpcsFile->addWarning( | ||
sprintf("Contains obsolete method: %s.", $method), |
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.
It would be good to suggest a replacement
sprintf("Contains obsolete method: %s.", $method), | |
sprintf("Contains obsolete method: %s. Please use getConnection method instead.", $method), |
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.
Done, please review! thanks!
@magento import pr to magento-commerce/magento-coding-standard |
@eliseacornejo the Pull Request is successfully imported. |
No description provided.