summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/001.phpt
blob: 13bf93f4dfc94b1db7479d7a2bfa19a22274c389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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