Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3d968e7

Browse files
committed
Return union types correctly for properties
1 parent abf38cf commit 3d968e7

File tree

1 file changed

+1
-1
lines changed
  • src/PHPFUI/InstaDoc/Section

1 file changed

+1
-1
lines changed

‎src/PHPFUI/InstaDoc/Section/Doc.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ protected function getProperty(\ReflectionProperty $property, \ReflectionClass $
442442
if ($type)
443443
{
444444
// @phpstan-ignore-next-line
445-
$info .= $this->getColor('type', $this->getClassName($type->getName())) . '';
445+
$info .= $this->getColor('type', $this->getClassName($type)) . '';
446446
}
447447
$info .= $this->getName($property, $this->getColor('variable', '$' . $property->getName()));
448448

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /