Skip to content

Playground: Implement PhpdocCommentRule #4074

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

Open
wants to merge 7 commits into
base: 2.1.x
Choose a base branch
from

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jun 26, 2025

@staabm staabm changed the title Playground: Implement NonPhpdocCommentRule Playground: Implement PhpdocCommentRule Jun 26, 2025
@clxmstaab clxmstaab force-pushed the NonPhpdocCommentRule branch from c033db6 to c495d3d Compare June 26, 2025 14:07
throw new ShouldNotHappenException();
}

if (!str_contains($comment->getText(), '@')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we need something more sophiscated, like "contains a real phpdoc tag"?
if so, how to find out?

Copy link

@mvorisek mvorisek Jun 26, 2025

Choose a reason for hiding this comment

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

(\s|^)@\w+(\s|$) would be good to exclude these:

@staabm staabm marked this pull request as ready for review June 26, 2025 14:14
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

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.

3 participants