ZF2-285: Code\Reflection\DocBlockReflection::reflect() does extract the clean DocComment, but ignores it afterwards

Issue Type: Bug Created: 2012-05-02T14:15:37.000+0000 Last Updated: 2012-06-13T20:03:06.000+0000 Status: Resolved Fix version(s): Reporter: Pirmin Mattmann (forte) Assignee: Ralph Schindler (ralph) Tags: - Zend\Code\Reflection

Related issues: Attachments:


The method Code\Reflection\DocBlockReflection::reflect() extracts the clean DocComment, but does not use it for the DocBlockScanner. Not only, that it would simplify the DocBlockScanner, it even fails sometimes to extract Tags from the DocBlock.

I would suggest to replace the line 265 with the following:

$scanner = new DocBlockScanner($this->cleanDocComment);


Posted by Maks 3w (maks3w) on 2012-06-06T20:14:14.000+0000

Hi Pirmin,

IMHO If DocBlockScanner was under the Reflection Subnamespace then your proposal could have sense but, at this moment, you can use DocBlockScanner independent of any Reflection class so for me have sense the use of raw values.

Anyway if you think that you are right I encourage you to send your proposal to GitHub.


Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.