Skip to content

Commit 00f0c4b

Browse files
committed
Update more cases of Utils::createDocBlockInstance()
1 parent 72c9e81 commit 00f0c4b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/voku/SimplePhpParser/Model/PHPFunction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function readObjectFromPhpNode($node, $dummy = null): self
7676
$docComment = $node->getDocComment();
7777
if ($docComment) {
7878
try {
79-
$phpDoc = Utils::createDocBlockInstance()->create($docComment->getText());
79+
$phpDoc = DocBlockFactory::createInstance()->create($docComment->getText());
8080
$this->summary = $phpDoc->getSummary();
8181
$this->description = (string) $phpDoc->getDescription();
8282
} catch (\Exception $e) {
@@ -229,7 +229,7 @@ protected function readPhpDoc($doc): void
229229
}
230230

231231
try {
232-
$phpDoc = Utils::createDocBlockInstance()->create($docComment);
232+
$phpDoc = DocBlockFactory::createInstance()->create($docComment);
233233

234234
$parsedReturnTag = $phpDoc->getTagsByName('return');
235235

src/voku/SimplePhpParser/Model/PHPMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function readObjectFromPhpNode($node, $classStr = null): PHPFunction
4444
$docComment = $node->getDocComment();
4545
if ($docComment) {
4646
try {
47-
$phpDoc = Utils::createDocBlockInstance()->create($docComment->getText());
47+
$phpDoc = DocBlockFactory::createInstance()->create($docComment->getText());
4848
$this->summary = $phpDoc->getSummary();
4949
$this->description = (string) $phpDoc->getDescription();
5050
} catch (\Exception $e) {

src/voku/SimplePhpParser/Model/PHPParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private function readPhpDoc($doc, string $parameterName): void
220220
}
221221

222222
try {
223-
$phpDoc = Utils::createDocBlockInstance()->create($docComment);
223+
$phpDoc = DocBlockFactory::createInstance()->create($docComment);
224224

225225
$parsedParamTags = $phpDoc->getTagsByName('param');
226226

src/voku/SimplePhpParser/Model/PHPProperty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private function readPhpDoc($doc): void
229229
}
230230

231231
try {
232-
$phpDoc = Utils::createDocBlockInstance()->create($docComment);
232+
$phpDoc = DocBlockFactory::createInstance()->create($docComment);
233233

234234
$parsedParamTags = $phpDoc->getTagsByName('var');
235235

src/voku/SimplePhpParser/Model/PHPTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private function readPhpDocProperties($doc): void
292292
}
293293

294294
try {
295-
$phpDoc = Utils::createDocBlockInstance()->create($docComment);
295+
$phpDoc = DocBlockFactory::createInstance()->create($docComment);
296296

297297
$parsedPropertyTags = $phpDoc->getTagsByName('property')
298298
+ $phpDoc->getTagsByName('property-read')

0 commit comments

Comments
 (0)