ovr / phpsa

Smart/Static Analyzer(sis) for PHP :bowtie::neckbeard:
Other
638 stars 77 forks source link

[Analyzer] DocBlocks #95

Open ddmler opened 8 years ago

ddmler commented 8 years ago

A collection of things we need to do to fully support docblocks First we need to get missing docblock for properties working: https://github.com/ovr/phpsa/blob/master/src/Compiler/Expression.php#L263

ovr commented 8 years ago

Yes I was trying to support it, but it's not easy as I see

Docblocks is based on NS and needed to create NS context to pass it intro phpdocument annotations analyzer, review composer.json package to find this extra component

Will be rly cool to have this, will help with protecting and understanding what is the variable type

Seems PHP annotations is needed for:

And @ as

And there are advanced annotations, for example Doctrine, Swagger-PHP or PHPUnit as an example

ddmler commented 8 years ago

to add to the list above: