ReflectionParameter::getType

( excerpt from http://php

public function getType(): ?ReflectionType;

net/manual/en/reflectionparameter.gettype.php )

Gets the associated type of a parameter.

Return Values

  • ?ReflectionType - Returns a ReflectionType object if a parameter type is specified, NULL otherwise.