Object parameters should be type hinted

From Insight https://insight.sensiolabs.com/projects/7f9d0558-cf49-40fe-b476-7e4ff4083082/analyses/2