With T145162 the parameter documentation should be forced to use int / bool
This should than also be done for the is_integer function. It should use is_int instead.
It seems a is_boolean function does not exists.
Negative test cases:
$this->is_integer( $var ) self::is_integer( $var )