Class based type hinting has already been available since 2004 with 5.0 [1] This release adds support for the general standard object type.
[1] http://php.net/manual/en/functions.arguments.php#functions.a...
[1] http://php.net/manual/en/functions.arguments.php#functions.a...