--TEST-- ReflectionClass::__toString() - ensure inherited private props are hidden. --FILE-- --EXPECTF-- Class [ class c ] { @@ %s 2-7 - Constants [0] { } - Static properties [1] { Property [ private static $b = NULL ] } - Static methods [0] { } - Properties [3] { Property [ private $a = NULL ] Property [ public ?int $c = 42 ] Property [ public Foo $d ] } - Methods [0] { } } Class [ class d extends c ] { @@ %s 9-9 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [2] { Property [ public ?int $c = 42 ] Property [ public Foo $d ] } - Methods [0] { } }