Updated @version in accordance with the latest changes in Tag.

This commit is contained in:
Vasil Rangelov
2012-11-13 19:10:13 +02:00
parent 3d8bcdbe5b
commit fc53ad4139
@@ -12,6 +12,7 @@
namespace phpDocumentor\Reflection\DocBlock\Tag; namespace phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock;
use phpDocumentor\Reflection\DocBlock\Tag; use phpDocumentor\Reflection\DocBlock\Tag;
/** /**
@@ -29,14 +30,13 @@ class VersionTag extends Tag
/** /**
* Parses a tag and populates the member variables. * Parses a tag and populates the member variables.
* *
* @param string $type Tag identifier for this tag (should be 'version'). * @param string $type Tag identifier for this tag (should be 'version').
* @param string $content Contents for this tag. * @param string $content Contents for this tag.
* @param DocBlock $docblock The DocBlock which this tag belongs to.
*/ */
public function __construct($type, $content) public function __construct($type, $content, DocBlock $docblock = null)
{ {
$this->tag = $type; parent::__construct($type, $content, $docblock);
$this->content = $content;
$this->description = trim($content);
if (preg_match( if (preg_match(
'/^ '/^