--TEST-- ZE2 class type hinting non existing class --SKIPIF-- --FILE-- a($o); ?> --EXPECTF-- Fatal error: Uncaught TypeError: Argument 1 passed to Foo::a() must be an instance of NonExisting, instance of Foo given, called in %s on line %d and defined in %s:%d Stack trace: #0 %s(%d): Foo->a(Object(Foo)) #1 {main} thrown in %s on line %d