summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/003.phpt
blob: 5d60da25ed121fb895ecb55421423590a1622aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Returned 1, expected array
--FILE--
<?php
function test1() : array {
    return 1;
}
test1();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of test1() must be of type array, int returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}
  thrown in %s on line %d