Skip to content

[PhpDoc] Multiline test improvements#1989

Merged
TomasVotruba merged 5 commits intomasterfrom
fix-annot-edge-cases
Sep 17, 2019
Merged

[PhpDoc] Multiline test improvements#1989
TomasVotruba merged 5 commits intomasterfrom
fix-annot-edge-cases

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

No description provided.

}

return false;
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@sashabeton I did a small code cleanup of your rule + making coding standard pass, in case you'd be intereseted.

Main take aways:

  • use the most precise node possible - ArrayItem
  • add shouldSkipX() (here shouldSkipArrayItem()) method to skip invalid nodes in standalone method
  • avoid &$reference if possible, they create very hard to solve bugs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

One more improvement in regexs:
87458fa

@TomasVotruba TomasVotruba merged commit 046fdc3 into master Sep 17, 2019
@TomasVotruba TomasVotruba deleted the fix-annot-edge-cases branch September 17, 2019 13:42
TomasVotruba added a commit that referenced this pull request Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant