Add a comment.

This commit is contained in:
Dorian Villet 2019-10-04 12:57:41 +02:00
parent 205754067c
commit 8ffce14a64

View File

@ -97,6 +97,7 @@ final class DocBlockNameImporter
return $docNode;
}
// Importing root namespace classes (like \DateTime) is optional
if (! $shouldImportRootNamespaceClasses && substr_count($staticType->getClassName(), '\\') === 0) {
return $docNode;
}