--TEST-- Invalid union type variance: Using parent of class in return type --FILE-- --EXPECTF-- Fatal error: Declaration of B::method(): X|string must be compatible with A::method(): Y|string in %s on line %d