ReflectionParameter::hasType

( excerpt from http://php.net/manual/en/reflectionparameter.hastype.php )

public function hasType(): bool;

Checks if the parameter has a type associated with it.

Returns

  • bool - TRUE if a type is specified, FALSE otherwise.