1--TEST-- 2Returned string, expected array 3--FILE-- 4<?php 5function test1() : array { 6 return "hello"; 7} 8 9test1(); 10?> 11--EXPECTF-- 12Fatal error: Uncaught TypeError: test1(): Return value must be of type array, string returned in %s:%d 13Stack trace: 14#0 %s(%d): test1() 15#1 {main} 16 thrown in %s on line %d 17