3 ms·And in PHP 7.0 (because who wants to use something earlier) you have: function getUser(int $id) : Userby lsaferite 10y agoAnd in PHP 7.0 (because who wants to use something earlier) you have: function getUser(int $id) : User