phpDocumentor / ReflectionDocBlock

MIT License
9.35k stars 119 forks source link

Fix rendering a description when it contains escaped chars and no tags #357

Closed AydinHassan closed 7 months ago

AydinHassan commented 1 year ago

Hi!

We are using twig templates in some doc comments (don't ask 🤣) and when lexing the % char is escaped. vsprintf unescapes normally and returns the original content correctly.

But when there are no tags an optimisation is performed which no longer calls vsprintf so the description is returned with the % chars escaped.

To fix I simply call vsprintf on the description always.

jaapio commented 7 months ago

Sorry for the delay...

Thanks for addressing this!

AydinHassan commented 7 months ago

Nice thanks!