blob: 7aa20c2bc7639f0d17cc7cf0e90cf5b0576e7f05 (
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 2
--FILE--
<?php
throw new Exception(new stdClass);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Exception::__construct(): Argument #1 ($message) must be of type string, object given in %s:%d
Stack trace:
#0 %sexception_019.php(%d): Exception->__construct(Object(stdClass))
#1 {main}
thrown in %sexception_019.php on line %d
|