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