blob: e8f828c4bdeba0e3283947a5a94928e4c8d07cca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Adding a function object return type
--FILE--
<?php
function a() : object {
return 12345;
}
a();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of a() must be an object, integer returned in %s:4
Stack trace:
#0 %s(6): a()
#1 {main}
thrown in %s on line 4
|