1--TEST-- 2Missing class method a object return type during inheritance 3--FILE-- 4<?php 5 6class One { 7 public function a() : object {} 8} 9 10class Two extends One { 11 public function a() {} 12} 13?> 14--EXPECTF-- 15Fatal error: Declaration of Two::a() must be compatible with One::a(): object in %s on line 8 16