File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
reference/reflection/reflectionproperty Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55
55
<programlisting role =" php" >
56
56
<![CDATA[
57
57
<?php
58
+
58
59
class Str
59
60
{
60
61
public $length = 5;
@@ -73,7 +74,7 @@ printf(
73
74
$prop->isStatic() ? ' static' : '',
74
75
$prop->getName(),
75
76
$prop->isDefault() ? 'declared at compile-time' : 'created at run-time',
76
- var_export(Reflection::getModifierNames($prop->getModifiers()), 1 )
77
+ var_export(Reflection::getModifierNames($prop->getModifiers()), true )
77
78
);
78
79
79
80
// Create an instance of Str
@@ -90,6 +91,7 @@ var_dump($prop->getValue($obj));
90
91
91
92
// Dump object
92
93
var_dump($obj);
94
+
93
95
?>
94
96
]]>
95
97
</programlisting >
@@ -115,7 +117,8 @@ object(Str)#2 (1) {
115
117
<![CDATA[
116
118
<?php
117
119
118
- class Foo {
120
+ class Foo
121
+ {
119
122
public $x = 1;
120
123
protected $y = 2;
121
124
private $z = 3;
You can’t perform that action at this time.
0 commit comments