We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d968e7 commit eeecc76Copy full SHA for eeecc76
src/PHPFUI/InstaDoc/Section/CodeCommon.php
@@ -284,7 +284,11 @@ protected function getClassName(string | object $class, bool $asLink = true) : s
284
{
285
$className = $class::class;
286
287
- if ('ReflectionNamedType' == $className)
+ if ($class instanceof \phpDocumentor\Reflection\Type)
288
+ {
289
+ return \htmlspecialchars($class);
290
+ }
291
+ elseif ('ReflectionNamedType' == $className)
292
293
return ($class->allowsNull() ? '?' : '') . $this->getClassName($class->getName());
294
}
@@ -318,9 +322,7 @@ protected function getClassName(string | object $class, bool $asLink = true) : s
318
322
return $value . ')';
319
323
320
324
321
-
325
return $this->getClassName($class::class);
326
327
328
if ($asLink && $class)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments