Skip to content
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

issue: DocCommentSpacingSniff - same line #1666

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michalbundyra
Copy link

When we have two PHPDocs in a single line we are getting an error:

| ERROR | [x] Expected 1 line between annotations groups, found -1. (SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectLinesCountBetweenAnnotationsGroups)

but it is not possible to fix it automatically.

And I am not sure how to fix in in the code atm, so just providing the failing example... Thanks!

@kukulich
Copy link
Contributor

kukulich commented Mar 9, 2024

The main problem is that PHPCS itself cannot parse the tags on same line - PHPCS things it is only one tag with description self::method() @link https://example.com. Please report the bug to PHPCS first.

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

Successfully merging this pull request may close these issues.

None yet

2 participants