Skip to content

Period ends short description even if it is not at the end of the line #63

@xelan

Description

@xelan

Example Code:

<?php
$docblock = <<<DOCBLOCK
/**
 * This is a short (...) description.
 *
 * This is a long description.
 *
 * @return void
 */
DOCBLOCK;

$phpdoc = new \phpDocumentor\Reflection\DocBlock($docblock);
echo $phpdoc->getShortDescription() . PHP_EOL;

Expected output:
This is a short (...) description.

Actual output:
This is a short (.

Tested version:
phpdocumentor/reflection-docblock 2.0.4

Issue #34 seems to be related to this. Thank you very much!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions