2.0.1: Vendor packages type hints are not always present.
Because some vendor don't use type hints in their vendor packages the code died on trying to get a class name from the variable. By checking first if parameter type isn't empty we can avoid this and the rest of the code can continue.