-
Notifications
You must be signed in to change notification settings - Fork 126
Stripped tag description in v5.6.1 with phpdoc-parser v2 #408
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
Comments
This issue has been fixed in #409 |
Great! Thank you! |
Thank you for reporting :-) |
IanDelMar
added a commit
to IanDelMar/wordpress-stubs
that referenced
this issue
Apr 16, 2025
szepeviktor
pushed a commit
to php-stubs/wordpress-stubs
that referenced
this issue
Apr 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
phpDocumentor/ReflectionDocBlock
v5.6.1 together withphpstan/phpdoc-parser
v2, the output ofSerializer::getDocComment()
changes unexpectedly compared to using the same version withphpstan/phpdoc-parser
v1.Expected behavior
The output of
Serializer::getDocComment()
should remain consistent betweenphpstan/phpdoc-parser
v1 and v2.Actual behavior
@
(even if indented by a single white space) get stripped at the first indentation unless the previous line starts with@
and is not indented.Examples
Case 1: Basic indentation loss and truncation
Case 2: Previous line starts with
@
and is not indentedCase 3: Previous line does not start with
@
and is indentedCase 4: Previous line does not start with
@
and is not indentedOther comments
phpstan/phpdoc-parser
is locked to version 1.33.0.The text was updated successfully, but these errors were encountered: