1--TEST-- 2Union type on internal property 3--EXTENSIONS-- 4zend_test 5--FILE-- 6<?php 7$rp = new ReflectionProperty(_ZendTestClass::class, 'classUnionProp'); 8$rt = $rp->getType(); 9echo $rt, "\n"; 10?> 11--EXPECT-- 12stdClass|Iterator|null 13