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: foo(): Argument #1 ($ex) must be of type bar, null given, called in %s:%d
12Stack trace:
13#0 %s(%d): foo(NULL)
14#1 {main}
15  thrown in %s on line %d
16