#96704Harden event listener automagic parameter type resolution
Description
Do only auto-resolve the event name if the reflection type
of the first parameter is a ReflectionNamedType [1] as
only this subclass of ReflectionType defines the getName() method.
[1] https://www.php.net/manual/en/class.reflectionnamedtype.php