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