1--TEST-- 2Using both object and a class type 3--FILE-- 4<?php 5 6function test(): object|Test { 7} 8 9?> 10--EXPECTF-- 11Fatal error: Type Test|object contains both object and a class type, which is redundant in %s on line %d 12