blob: 604d3314c22cfa8e5527137f641cfa7eaf6660a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
Testing throw exception doesn't crash with wrong params, variant 4
--FILE--
<?php
throw new Error(new stdClass);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Error::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
Stack trace:
#0 %sexception_022.php(%d): Error->__construct(Object(stdClass))
#1 {main}
thrown in %sexception_022.php on line %d
|