blob: 8aec0c009f6662891cdadb79e591849405e27a0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Inexistent class as type receiving scalar argument
--FILE--
<?php
function foo(bar $ex) {}
foo(null);
?>
--EXPECTF--
Fatal 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
Stack trace:
#0 %s(%d): foo(NULL)
#1 {main}
thrown in %s on line %d
|