blob: 2b87a562f6abdc096b512f4c9d02438fdf2e3cea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
Returned nothing, expected array
--FILE--
<?php
function test1() : array {
}
test1();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, none returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}
thrown in %s on line %d
|