correcting type hint to make it work with fos user bundle