We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db20ae3 commit 2812eacCopy full SHA for 2812eac
src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php
@@ -37,12 +37,12 @@ class ReturnTag extends Tag
37
public function __construct($type, $content, DocBlock $docblock = null)
38
{
39
parent::__construct($type, $content, $docblock);
40
- $content = preg_split('/[\ \t]+/u', $this->description, 2);
+ $content = preg_split('/\s+/u', $this->description, 2);
41
42
// any output is considered a type
43
- $this->type = array_shift($content);
+ $this->type = $content[0];
44
45
- $this->description = implode(' ', $content);
+ $this->description = isset($content[1]) ? $content[1] : '';
46
}
47
48
/**
0 commit comments