fix typehint of params to be an array rather than a string