Skip to content

Commit

Permalink
Extractor::toPhp() removes doc comments [Closes #135]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 29, 2023
1 parent 688685a commit df22ef1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PhpGenerator/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,11 @@ private function toVisibility(int $flags): ?string
}


private function toPhp(mixed $value): string
private function toPhp(Node $value): string
{
return $this->printer->prettyPrint([$value]);
$dolly = clone $value;
$dolly->setAttribute('comments', []);
return $this->printer->prettyPrint([$dolly]);
}


Expand Down

0 comments on commit df22ef1

Please sign in to comment.