Skip to content

Commit 2fc8570

Browse files
committed
Fix conversion issues to string
1 parent 0cde2cd commit 2fc8570

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/phpDocumentor/Reflection/Php/Factory/Argument.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ protected function doCreate($object, StrategyContainer $strategies, ?Context $co
8383
private function createType(Param $arg, ?Context $context = null): Type
8484
{
8585
$typeResolver = new TypeResolver();
86-
$typeString = (string) $arg->type;
8786
if ($arg->type instanceof NullableType) {
88-
$typeString = '?' . $arg->type;
87+
$typeString = '?' . $arg->type->type;
88+
} else {
89+
$typeString = (string) $arg->type;
8990
}
9091

9192
return $typeResolver->resolve($typeString, $context);

0 commit comments

Comments
 (0)