mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-14 21:04:48 +01:00
Reflection DocBlock
This package takes care of Fully Qualified names from annotations:
This code:
namespace SomeNamespace;
...
/**
* @param SomeType $value
*/
public function __construct($value)
{
}
will produce this:
$valueNodeTypes = $valueNode->getAttribute(Attributes::TYPES);
var_dump($valueNodeTypes); // ['SomeNamespace\SomeType'];