function foobar(int $i) { if (!is_int($i)) { throw new Exception("Not an integer."); // this will never happen } }