language/oop5/properties.xml
f94d903985119d3ac00f4528551df947f57b667f
...
...
@@ -254,7 +254,7 @@ $test1->prop = "foobar";
254
254
<note>
255
255
<para>
256
256
Specifying an explicit default value on readonly properties is not allowed, because a readonly property with a default value is essentially the same as a constant, and thus not particularly useful.
257
-
<example>
257
+
<informalexample>
258
258
<programlisting role="php">
259
259
<![CDATA[
260
260
<?php
...
...
@@ -266,7 +266,7 @@ class Test {
266
266
?>
267
267
]]>
268
268
</programlisting>
269
-
</example>
269
+
</informalexample>
270
270
</para>
271
271
</note>
272
272
<note>
...
...
@@ -276,7 +276,7 @@ class Test {
276
276
</note>
277
277
<para>
278
278
Modifications are not necessarily plain assignments, all of the following will also result in an <classname>Error</classname> exception:
279
-
<example>
279
+
<informalexample>
280
280
<programlisting role="php">
281
281
<![CDATA[
282
282
<?php
...
...
@@ -301,11 +301,11 @@ foreach ($test as &$prop);
301
301
?>
302
302
]]>
303
303
</programlisting>
304
-
</example>
304
+
</informalexample>
305
305
</para>
306
306
<para>
307
307
However, readonly properties do not preclude interior mutability. Objects (or resources) stored in readonly properties may still be modified internally:
308
-
<example>
308
+
<informalexample>
309
309
<programlisting role="php">
310
310
<![CDATA[
311
311
<?php
...
...
@@ -322,7 +322,7 @@ $test->obj = new stdClass;
322
322
?>
323
323
]]>
324
324
</programlisting>
325
-
</example>
325
+
</informalexample>
326
326
</para>
327
327
</sect2>
328
328

329
329