1--TEST--
2Exception thrown from function with return type
3--FILE--
4<?php
5function test() : array {
6 throw new Exception();
7}
8
9test();
10--EXPECTF--
11Fatal error: Uncaught Exception in %s:%d
12Stack trace:
13#0 %s(%d): test()
14#1 {main}
15 thrown in %s on line %d
16