Skip to content

Commit 8eb596c

Browse files
committed
Updated @Version in accordance with the latest changes in Tag.
1 parent 26e2ead commit 8eb596c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
namespace phpDocumentor\Reflection\DocBlock\Tag;
1414

15+
use phpDocumentor\Reflection\DocBlock;
1516
use phpDocumentor\Reflection\DocBlock\Tag;
1617

1718
/**
@@ -29,14 +30,13 @@ class VersionTag extends Tag
2930
/**
3031
* Parses a tag and populates the member variables.
3132
*
32-
* @param string $type Tag identifier for this tag (should be 'version').
33-
* @param string $content Contents for this tag.
33+
* @param string $type Tag identifier for this tag (should be 'version').
34+
* @param string $content Contents for this tag.
35+
* @param DocBlock $docblock The DocBlock which this tag belongs to.
3436
*/
35-
public function __construct($type, $content)
37+
public function __construct($type, $content, DocBlock $docblock = null)
3638
{
37-
$this->tag = $type;
38-
$this->content = $content;
39-
$this->description = trim($content);
39+
parent::__construct($type, $content, $docblock);
4040

4141
if (preg_match(
4242
'/^

0 commit comments

Comments
 (0)