--TEST-- Adding a function object type hint --FILE-- --EXPECTF-- Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d Stack trace: #0 %s(7): a(123) #1 {main} thrown in %s on line 4