add FQN-by defaultn ote

This commit is contained in:
Tomas Votruba 2019-07-28 11:09:55 +02:00
parent 8f30925bf5
commit 3b76ef97c6

View File

@ -545,6 +545,10 @@ final class DocBlockManipulator
return $this->phpDocInfoFactory->createFromNode($node);
}
/**
* All class-type tags are FQN by default to keep default convention through the code.
* Some people prefer FQN, some short. FQN can be shorten with \Rector\CodingStyle\Rector\Namespace_\ImportFullyQualifiedNamesRector later, while short prolonged not
*/
private function addTypeSpecificTag(Node $node, string $name, string $type): void
{
// prefix possible class name