Skip to content

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

Merged
merged 5 commits into from
Oct 13, 2021

Conversation

eliseacornejo
Copy link
Contributor

No description provided.

Copy link
Member

@sivaschenko sivaschenko left a 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),
Copy link
Member

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

Suggested change
sprintf("Contains obsolete method: %s.", $method),
sprintf("Contains obsolete method: %s. Please use getConnection method instead.", $method),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, please review! thanks!

@eliseacornejo eliseacornejo marked this pull request as ready for review October 13, 2021 09:52
@eliseacornejo
Copy link
Contributor Author

@magento import pr to magento-commerce/magento-coding-standard

@m2-github-services
Copy link
Contributor

@eliseacornejo the Pull Request is successfully imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants