This looks wrong when ``$destinationClass`` was passed as string, as it was then replaced by a ReflectionClass, and you are creating a ReflectionObject for a ReflectionClass instance here