Same as for "boolean" below, happens with integers. gettype() return "integer" yet proper type hint is "int".
If your project is PHP8+ then you should consider using get_debug_type() instead which seems to return proper types that match used for type hints.