language/oop5/basic.xml
f94d903985119d3ac00f4528551df947f57b667f
...
...
@@ -139,7 +139,7 @@ Stack trace:
139
139
<classname>AllowDynamicProperties</classname> attribute. Attempting to do so
140
140
will trigger a compile-time error.
141
141
</para>
142
-
<example>
142
+
<informalexample>
143
143
<programlisting role="php">
144
144
<![CDATA[
145
145
<?php
...
...
@@ -151,14 +151,14 @@ readonly class Foo {
151
151
?>
152
152
]]>
153
153
</programlisting>
154
-
</example>
154
+
</informalexample>
155
155

156
156
<para>
157
157
As neither untyped nor static properties can be marked with the
158
158
<literal>readonly</literal> modifier, readonly classes cannot declare
159
159
them either:
160
160
</para>
161
-
<example>
161
+
<informalexample>
162
162
<programlisting role="php">
163
163
<![CDATA[
164
164
<?php
...
...
@@ -183,7 +183,7 @@ readonly class Foo
183
183
?>
184
184
]]>
185
185
</programlisting>
186
-
</example>
186
+
</informalexample>
187
187
<para>
188
188
A <modifier>readonly</modifier> class can be
189
189
<link linkend="language.oop5.basic.extends">extended</link>
190
190