Skip to content

Conversation

@svera
Copy link
Contributor

@svera svera commented Sep 13, 2021

#140 was wrongly returning error for valid short descriptions. We added several unit tests checking for this issue, as well as not allowing to repeat property class name in short description and rephrasing the error return when a short description is placed after a @var annotation.

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.

Thank you for the fix @svera ! Please see my comments

return;
}

if (stripos($tokens[$isShortDescriptionPreviousVar]['content'], $tokens[$string]['content']) !== false) {
Copy link
Member

Choose a reason for hiding this comment

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

Please check that $isShortDescriptionPreviousVar is not false before using it as an array key

@svera svera marked this pull request as ready for review September 14, 2021 07:33
@svera
Copy link
Contributor Author

svera commented Sep 14, 2021

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

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.

3 participants