@@ -23,9 +23,9 @@ var_dump($private->getValue($a));
23
23
var_dump ($ privateStatic ->getValue ());
24
24
25
25
$ protected ->setValue ($ a , 'e ' );
26
- $ protectedStatic ->setValue ('f ' );
26
+ $ protectedStatic ->setValue (null , 'f ' );
27
27
$ private ->setValue ($ a , 'g ' );
28
- $ privateStatic ->setValue ('h ' );
28
+ $ privateStatic ->setValue (null , 'h ' );
29
29
30
30
var_dump ($ protected ->getValue ($ a ));
31
31
var_dump ($ protectedStatic ->getValue ());
@@ -45,7 +45,7 @@ var_dump($privateStatic->getValue());
45
45
$ protected ->setValue ($ a , 'i ' );
46
46
$ protectedStatic ->setValue ('j ' );
47
47
$ private ->setValue ($ a , 'k ' );
48
- $ privateStatic ->setValue ('l ' );
48
+ $ privateStatic ->setValue (null , 'l ' );
49
49
50
50
var_dump ($ protected ->getValue ($ a ));
51
51
var_dump ($ protectedStatic ->getValue ());
@@ -63,7 +63,7 @@ var_dump($protectedStatic->getValue());
63
63
var_dump ($ private ->getValue ($ b ));
64
64
65
65
$ protected ->setValue ($ b , 'e ' );
66
- $ protectedStatic ->setValue ('f ' );
66
+ $ protectedStatic ->setValue (null , 'f ' );
67
67
$ private ->setValue ($ b , 'g ' );
68
68
69
69
var_dump ($ protected ->getValue ($ b ));
@@ -79,14 +79,14 @@ var_dump($protectedStatic->getValue());
79
79
var_dump ($ private ->getValue ($ b ));
80
80
81
81
$ protected ->setValue ($ b , 'h ' );
82
- $ protectedStatic ->setValue ('i ' );
82
+ $ protectedStatic ->setValue (null , 'i ' );
83
83
$ private ->setValue ($ b , 'j ' );
84
84
85
85
var_dump ($ protected ->getValue ($ b ));
86
86
var_dump ($ protectedStatic ->getValue ());
87
87
var_dump ($ private ->getValue ($ b ));
88
88
?>
89
- --EXPECT --
89
+ --EXPECTF --
90
90
string(1) "a"
91
91
string(1) "b"
92
92
string(1) "c"
@@ -99,6 +99,8 @@ string(1) "e"
99
99
string(1) "f"
100
100
string(1) "g"
101
101
string(1) "h"
102
+
103
+ Deprecated: Calling ReflectionProperty::setValue() with a single argument is deprecated in %s on line %d
102
104
string(1) "i"
103
105
string(1) "j"
104
106
string(1) "k"
0 commit comments