I think typehinting the object arguments is better (and SensioLabs Insight agrees with me as it checks for it). So I think the new code should use the typehint (changing the existing code is probably outside the scope of this PR).