TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
370 B
14 lines
370 B
--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, stdClass given in %s:%d
|
|
Stack trace:
|
|
#0 %s: Exception->__construct(Object(stdClass))
|
|
#1 {main}
|
|
thrown in %s on line %d
|
|
|