language/functions.xml
f94d903985119d3ac00f4528551df947f57b667f
...
...
@@ -1044,7 +1044,7 @@ $func(); // prints "bar"
1044
1044
In contrast, a <classname>TypeError</classname> is emitted in strict mode.
1045
1045
</para>
1046
1046

1047
-
<example>
1047
+
<informalexample>
1048
1048
<programlisting role="php">
1049
1049
<![CDATA[
1050
1050
<?php
...
...
@@ -1058,7 +1058,7 @@ var_dump(str_contains("foobar", null));
1058
1058
?>
1059
1059
]]>
1060
1060
</programlisting>
1061
-
</example>
1061
+
</informalexample>
1062
1062
</note>
1063
1063

1064
1064
<sect2 role="seealso">
...
...
@@ -1691,7 +1691,7 @@ $privateMethod(); // Foo1::privateMethod
1691
1691
<note>
1692
1692
<para>
1693
1693
The first-class callable syntax cannot be combined with the <link linkend="language.oop5.basic.nullsafe">nullsafe operator</link>. Both of the following result in a compile-time error:
1694
-
<example>
1694
+
<informalexample>
1695
1695
<programlisting role="php">
1696
1696
<![CDATA[
1697
1697
<?php
...
...
@@ -1700,7 +1700,7 @@ $obj?->prop->method(...);
1700
1700
?>
1701
1701
]]>
1702
1702
</programlisting>
1703
-
</example>
1703
+
</informalexample>
1704
1704
</para>
1705
1705
</note>
1706
1706
</sect1>
1707
1707