diff --git a/Classes/Util/ClassDocsHelper.php b/Classes/Util/ClassDocsHelper.php index 47336fa..9c4a620 100644 --- a/Classes/Util/ClassDocsHelper.php +++ b/Classes/Util/ClassDocsHelper.php @@ -737,7 +737,7 @@ public static function getMethodCode( $methodHead = sprintf('.. php:method:: %s(%s)', $methodName, implode(', ', $parameterInSignature)) . "\n\n"; if ($noindexInClassMembers) { - $methodHead = ' :noindex'; + $methodHead .= ' :noindex:' . "\n\n"; } $result = []; @@ -872,7 +872,7 @@ public static function getPropertyCode( $header = sprintf('.. php:attr:: %s', RstHelper::escapeRst($property)) . "\n\n"; if ($noindexInClassMembers) { - $header = ' :noindex'; + $header .= ' :noindex:' . "\n\n"; } $body = []; $code = []; @@ -934,7 +934,7 @@ public static function getConstantCode( $header = sprintf('.. php:const:: %s', RstHelper::escapeRst($constant)) . "\n\n"; if ($noindexInClassMembers) { - $header = ' :noindex'; + $header .= ' :noindex:' . "\n\n"; } $body = []; $body[] = sprintf(':php:`%s`, type %s', var_export($constantReflection, true), gettype($constantReflection)) . "\n\n";