Skip to content

Commit

Permalink
Add warn.deprecated.feature-8-4-0 to language-snippets.ent (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Nov 6, 2024
1 parent 912b89b commit b61406a
Show file tree
Hide file tree
Showing 6 changed files with 503 additions and 10 deletions.
6 changes: 5 additions & 1 deletion language-snippets.ent
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 17a5268812b06c23073609c4e8ab976ebfceb61b Maintainer: Gregory Status: ready -->
<!-- EN-Revision: 5051184c4fb3fcfe5f3f01f4789d0149e3e1f945 Maintainer: Gregory Status: ready -->
<!-- CREDITS: dallas, mowangjuanzi, Luffy -->
<!-- 请保持此文件与英文文件中相应的每个 ENTITY 行号一一对应以便于对照,修改与更新! -->

Expand Down Expand Up @@ -362,6 +362,10 @@ xmlns="http://docbook.org/ns/docbook"><simpara>本特性已自 PHP 8.3.0
xmlns="http://docbook.org/ns/docbook"><simpara>此函数自 PHP 8.3.0
起<emphasis>弃用</emphasis>。强烈建议不要应用此函数。</simpara></warning>'>

<!ENTITY warn.deprecated.feature-8-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>本特性已自 PHP 8.4.0
起<emphasis>废弃</emphasis>。强烈建议不要使用本特性。</simpara></warning>'>

<!ENTITY warn.deprecated.function-8-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>此函数自 PHP 8.4.0
起<emphasis>弃用</emphasis>。强烈建议不要应用此函数。</simpara></warning>'>
Expand Down
5 changes: 3 additions & 2 deletions language/oop5.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a9a6224ca97531df0a4e4b9b16b59c3f2baf1b09 Maintainer: verdana Status: ready -->
<!-- CREDITS: dallas, HonestQiao -->
<!-- EN-Revision: c0fa5077c8862405942d8aac7360c5169558b59b Maintainer: verdana Status: ready -->
<!-- CREDITS: dallas, HonestQiao, Luffy -->
<chapter xml:id="language.oop5" xmlns="http://docbook.org/ns/docbook">
<title>类与对象</title>

Expand Down Expand Up @@ -47,6 +47,7 @@
&language.oop5.references;
&language.oop5.serialization;
&language.oop5.variance;
&language.oop5.lazy-objects;
&language.oop5.changelog;
</chapter>

Expand Down
4 changes: 3 additions & 1 deletion language/oop5/basic.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f94d903985119d3ac00f4528551df947f57b667f Maintainer: avenger Status: ready -->
<!-- EN-Revision: 1d92bcca7524c50fc41056ea4c04e1032eb9e055 Maintainer: avenger Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<sect1 xml:id="language.oop5.basic" xmlns="http://docbook.org/ns/docbook">
<title>基本概念</title>
Expand Down Expand Up @@ -350,6 +350,8 @@ bool(true)
<![CDATA[
<?php
echo (new DateTime())->format('Y');
// 从 PHP 8.4.0 起,周围的括号是可选的
echo new DateTime()->format('Y');
?>
]]>
</programlisting>
Expand Down
8 changes: 7 additions & 1 deletion language/oop5/changelog.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 8d181538611c512546ac394511aa1d8e900dd9a3 Maintainer: daijie Status: ready -->
<!-- EN-Revision: c0fa5077c8862405942d8aac7360c5169558b59b Maintainer: daijie Status: ready -->
<!-- CREDITS: Luffy, mowangjuanzi -->
<sect1 xml:id="language.oop5.changelog" xmlns="http://docbook.org/ns/docbook">
<title>OOP 变更日志</title>
Expand All @@ -17,6 +17,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
添加:支持 <link linkend="language.oop5.lazy-objects">延迟对象</link>。
</entry>
</row>
<row>
<entry>8.1.0</entry>
<entry>
Expand Down
Loading

0 comments on commit b61406a

Please sign in to comment.