getTypeAsString() getTypeAsString(\ReflectionParameter $parameter) : string|null Return the type as a string in a way compatible from PHP 5.5 to 8.0. Parameters \ReflectionParameter $parameter Returns string|null