1--TEST-- 2Adding a function object type hint 3--FILE-- 4<?php 5 6class A {} 7function a(object $obj) {} 8 9a(new A()); 10a(123); 11--EXPECTF-- 12Fatal error: Uncaught TypeError: Argument 1 passed to a() must be an object, integer given, called in %s.php on line 7 and defined in %s:4 13Stack trace: 14#0 %s(7): a(123) 15#1 {main} 16 thrown in %s on line 4 17