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?>
12--EXPECTF--
13Fatal error: Uncaught TypeError: a(): Argument #1 ($obj) must be of type object, int given, called in %s:%d
14Stack trace:
15#0 %s(7): a(123)
16#1 {main}
17  thrown in %s on line 4
18