mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-15 05:15:04 +01:00
803 B
803 B
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'];