Skip to content

Commit 72c9e81

Browse files
committed
Use DocBlockFactory::createInstance()
1 parent 898f2c3 commit 72c9e81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/voku/SimplePhpParser/Model/PHPClass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace voku\SimplePhpParser\Model;
66

7+
use phpDocumentor\Reflection\DocBlockFactory;
78
use PhpParser\Comment\Doc;
89
use PhpParser\Node\Stmt\Class_;
910
use ReflectionClass;
@@ -385,7 +386,7 @@ private function readPhpDocProperties($doc): void
385386
}
386387

387388
try {
388-
$phpDoc = Utils::createDocBlockInstance()->create($docComment);
389+
$phpDoc = DocBlockFactory::createInstance()->create($docComment);
389390

390391
$parsedPropertyTags = $phpDoc->getTagsByName('property')
391392
+ $phpDoc->getTagsByName('property-read')

0 commit comments

Comments
 (0)