You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Foo {
/** * @param int $baz Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius, tellus in cursus * dictum, justo odio sagittis velit, id iaculis mi dui id nisi. */publicfunctionbar(int$baz): void {
}
}
Result of getDescription() on @param tag:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius, tellus in cursus
dictum, justo odio sagittis velit, id iaculis mi dui id nisi.
dictum, justo odio sagittis velit, id iaculis mi dui id nisi.
The direct cause for this is in ParamFactory::create() method (with my comments):
// value in "description" attribute is wrong (with duplicated line)$description = $tagValue->getAttribute('description');
if (is_string($description) === false) {
// this value is valid (without duplicated line), but is shadowed be the attribute$description = $tagValue->description;
}
I don't know why there is additional "description" attribute with invalid value and is preferred over "description" property, but I guess the source of this problem is in PhpDocParser::parseText() method.
The text was updated successfully, but these errors were encountered:
Test class/method/param:
Result of
getDescription()
on@param
tag:I've prepared a repository with this test case.
The direct cause for this is in
ParamFactory::create()
method (with my comments):I don't know why there is additional "description" attribute with invalid value and is preferred over "description" property, but I guess the source of this problem is in
PhpDocParser::parseText()
method.The text was updated successfully, but these errors were encountered: