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;
use phpDocumentor\Reflection\DocBlock;
use phpDocumentor\Reflection\DocBlock\Tag;
/**
@@ -31,12 +32,11 @@ class VersionTag extends Tag
*
* @param string $type Tag identifier for this tag (should be 'version').
* @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;
$this->content = $content;
$this->description = trim($content);
parent::__construct($type, $content, $docblock);
if (preg_match(
'/^