xref: /PHP-8.4/ext/reflection/tests/bug80564.phpt (revision 5ac55af5)
1--TEST--
2Bug #80564: ReflectionProperty::__toString() renders current value, not default value
3--FILE--
4<?php
5
6class A {
7	public static $x = 'default';
8}
9
10A::$x = new stdClass;
11
12$rp = new ReflectionProperty('A', 'x');
13echo $rp;
14
15?>
16--EXPECT--
17Property [ public static $x = 'default' ]
18