Using typehint instead of these phpDoc

@jjanvier is it what do you expect ?