28/04
2018
Simple Docblock Parser
DEPRECATED: See https://github.com/phpactor/docblock-parser for a better solution., (*1)
Sub-standard docblock parser., (*2)
$docblock = (new DocblockFactory())->create('/** @var Foobar */'); $vars = $docblock->tags()->byName('var'); foreach ($vars as $var) { $var->type(); $var->varName(); }
There is already a standards-compliant library for PHP-Documentor, however it is coupled to the PHPDocumentor type reflection library. This library only cares about parsing docblocks badly for Phpactor., (*3)
This package is open source and welcomes contributions! Feel free to open a pull request on this repository., (*4)
#phpactor
channel on the Slack Symfony Devs channel.