diff --git a/src/Documentation/PhpFileDocs.php b/src/Documentation/PhpFileDocs.php index 60ada58..ad8c2ec 100644 --- a/src/Documentation/PhpFileDocs.php +++ b/src/Documentation/PhpFileDocs.php @@ -148,7 +148,7 @@ private function scanSourceFile( string $filename, int $depth ) { if( $class = $reflector->getReflector() ) { if( !$this->getOption(self::OPT_SKIP_CLASS_HEADER, true) ) { - $document->appendChild(new Header('Class: ' . $class->getFqsen() /* . ' \\[ ', new Code('\\' . $class->getNamespace()), ' \\]' */)); + $document->appendChild(new Header('Class: ' . ltrim($class->getFqsen(), "\\") /* . ' \\[ ', new Code('\\' . $class->getNamespace()), ' \\]' */)); if( $classBlock = $class->getDocBlock() ) { if( $this->shouldSkip($classBlock) ) {