This PR adds a check to Parameter::getType() to ensure a potentially undefined method call getName() is not made on either a ReflectionUnionType::class or ReflectionIntersectionType::class object. This PR also includes two tests for correctness of behavior.
Description
This PR adds a check to
Parameter::getType()
to ensure a potentially undefined method callgetName()
is not made on either aReflectionUnionType::class
orReflectionIntersectionType::class
object. This PR also includes two tests for correctness of behavior.