Skip to content

Commit 5e86521

Browse files
committed
added link for "final class constant" example.
This link will be also used from releases/8.1/en.php.
1 parent ca12a0c commit 5e86521

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appendices/migration81/new-features.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ $arr2 = [...$arr1, 'c' => 'd']; //[1, 'a', 'c' => 'd']
153153
<title>Final class constants</title>
154154

155155
<para>
156-
Added support for the <modifier>final</modifier> modifier for class constants.
156+
Added support for <link linkend="language.oop5.final.example.php81">the <modifier>final</modifier> modifier for class constants</link>.
157157
Also, interface constants become overridable by default.
158158
<!-- RFC: https://wiki.php.net/rfc/final_class_const -->
159159
</para>

language/oop5/final.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ChildClass extends BaseClass {
6060
</example>
6161
</para>
6262
<para>
63-
<example>
63+
<example xml:id="language.oop5.final.example.php81">
6464
<title>Final constants example as of PHP 8.1.0</title>
6565
<programlisting role="php">
6666
<![CDATA[

0 commit comments

Comments
 (0)