1--TEST--
2Inexistent class as type receiving scalar argument
3--FILE--
4<?php
5
6function foo(bar $ex) {}
7foo(null);
8
9?>
10--EXPECTF--
11Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of bar, null given, called in %s on line %d and defined in %s:%d
12Stack trace:
13#0 %s(%d): foo(NULL)
14#1 {main}
15  thrown in %s on line %d
16