From b2be7a0bed312bb5e80372add6efddeb3bd4569c Mon Sep 17 00:00:00 2001 From: Marian <42134098+IanDelMar@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:30:39 +0200 Subject: [PATCH] Remove unnecessary variable --- src/Visitor.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Visitor.php b/src/Visitor.php index 5db38ce..51b7864 100644 --- a/src/Visitor.php +++ b/src/Visitor.php @@ -205,10 +205,8 @@ private function postProcessNode(Node $node): void */ private function generateAdditionalTagsFromDoc(Doc $docComment): array { - $docCommentText = $docComment->getText(); - try { - $docblock = $this->docBlockFactory->create($docCommentText); + $docblock = $this->docBlockFactory->create($docComment->getText()); } catch (\RuntimeException | \InvalidArgumentException $e) { return []; }