mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 20:39:43 +01:00
make test pass
This commit is contained in:
parent
50477e0a60
commit
1adea347b3
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user