Since this could be misleading and since this answer is still quite high in search engines.
PHP 7 did introduce type hinting for scalar types
There is no scalar type hinting in PHP 5, so the integer
type hint is considered to be a class type hint.
More reference http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration