make test pass

This commit is contained in:
TomasVotruba 2017-09-30 16:18:28 +02:00
parent 50477e0a60
commit 1adea347b3
2 changed files with 10 additions and 6 deletions

View File

@ -33,7 +33,12 @@ final class DocBlockAnalyzer
}
}
$doc = new Doc($docBlock->getContent());
$docContent = $docBlock->getContent();
if (strlen($docBlock->getContent()) <= 7) {
$docContent = '';
}
$doc = new Doc($docContent);
$node->setDocComment($doc);
/** @var Node $parentNode */

View File

@ -8,13 +8,12 @@ class SomeClass extends Object
{
private $value;
private $anotherValue;
public function getAnotherValue()
{
return $this->anotherValue;
}
public function getValue()
{
return $this->value;
}
public function getAnotherValue(): int
{
return $this->anotherValue;
}
}