1--TEST-- 2RFC example: returned type does not match the type declaration 3--FILE-- 4<?php 5 6function get_config(): array { 7 return 42; 8} 9 10get_config(); 11--EXPECTF-- 12Fatal error: Uncaught TypeError: Return value of get_config() must be of the type array, int returned in %s:%d 13Stack trace: 14#0 %s(%d): get_config() 15#1 {main} 16 thrown in %s on line %d 17