return $input;
} public static function getTypeString(ReflectionType
$type): string
{ // @codeCoverageIgnoreStart
// ReflectionType::__toString was deprecated in 7.4 and undeprecated in 8
// and toString doesn't correctly show the nullable ? in the type before 8
if (!KINT_PHP80
) { if (!
$type instanceof ReflectionNamedType
) { throw new UnexpectedValueException('ReflectionType on PHP 7 must be ReflectionNamedType'
);
} $name =
$type->
getName();
if ($type->
allowsNull() && 'mixed' !==
$name && false === \
strpos($name, '|'
)) { $name = '?'.
$name;
} return $name;
} // @codeCoverageIgnoreEnd