Skip to content

Commit bc693ad

Browse files
authored
Deprecated non-canonical cast names (#1005)
1 parent 050b266 commit bc693ad

File tree

6 files changed

+27
-17
lines changed

6 files changed

+27
-17
lines changed

language/types/integer.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e587d0655e426f97b3fcb431453da5030e743b23 Maintainer: Avenger Status: ready -->
3+
<!-- EN-Revision: 78a11d3ca004ee937549d932e77a79c51b9777cd Maintainer: Avenger Status: ready -->
44
<!-- CREDITS: Gregory, dallas, Altair, mowangjuanzi, Luffy -->
55
<sect1 xml:id="language.types.integer">
66
<title>Integer 整型</title>
@@ -147,8 +147,8 @@ var_dump(round(25/7)); // float(4)
147147
<title>转换为整型</title>
148148

149149
<simpara>
150-
要明确地将一个值转换为 <type>int</type>,用 <literal>(int)</literal>
151-
<literal>(integer)</literal> 强制转换。不过大多数情况下都不需要强制转换,因为当运算符,函数或流程控制需要一个
150+
要明确地将一个值转换为 <type>int</type>,用 <literal>(int)</literal> 强制转换。
151+
不过大多数情况下都不需要强制转换,因为当运算符,函数或流程控制需要一个
152152
<type>int</type> 参数时,值会自动转换。还可以通过函数
153153
<function>intval</function> 来将一个值转换成 <type>int</type> 整型。
154154
</simpara>

language/types/type-juggling.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 87fd768a70bb136ad6ba94699e8c6332e0c115e0 Maintainer: Avenger Status: ready -->
3+
<!-- EN-Revision: 78a11d3ca004ee937549d932e77a79c51b9777cd Maintainer: Avenger Status: ready -->
44
<!-- CREDITS: Geogory, dallas, Altair, mowangjuanzi, Luffy -->
55
<sect1 xml:id="language.types.type-juggling">
66
<title>类型转换</title>
@@ -277,14 +277,14 @@ var_dump($bar);
277277
<member><literal>(unset)</literal> ——转换为 <type>NULL</type></member>
278278
</simplelist>
279279

280-
<note>
280+
<warning>
281281
<para>
282282
<literal>(integer)</literal> 是 <literal>(int)</literal> 转换的别名。<literal>(boolean)</literal>
283283
是 <literal>(bool)</literal> 转换的别名。<literal>(binary)</literal> 是 <literal>(string)</literal>
284284
转换的别名。<literal>(double)</literal> 和 <literal>(real)</literal> 是 <literal>(float)</literal>
285-
转换的别名。这些转换不使用标准的类型名称,不推荐使用
285+
转换的别名。这些转换不使用标准的类型名称,自 PHP 8.5.0 起已弃用
286286
</para>
287-
</note>
287+
</warning>
288288

289289
<warning>
290290
<simpara>

reference/array/functions/array-key-exists.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 73048c75fbe328342b74f0ffb0a0c85c477f5cde Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: faa17c20aa7cdada1806b5b60d2c1b3bbcfff0d9 Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="function.array-key-exists" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>array_key_exists</refname>
@@ -70,6 +70,12 @@
7070
</row>
7171
</thead>
7272
<tbody>
73+
<row>
74+
<entry>8.5.0</entry>
75+
<entry>
76+
在 <parameter>key</parameter> 参数中使用 <type>null</type> 已被弃用,请改用空字符串。
77+
</entry>
78+
</row>
7379
<row>
7480
<entry>8.0.0</entry>
7581
<entry>

reference/dir/directory.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: 徐骁 Status: ready -->
3+
<!-- EN-Revision: 29f441a4c307d552c8d2a5fe7768a31060f02e99 Maintainer: 徐骁 Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<reference xml:id="class.directory" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
66

@@ -26,6 +26,7 @@
2626
<!-- {{{ Synopsis -->
2727
<classsynopsis class="class">
2828
<ooclass>
29+
<modifier>final</modifier>
2930
<classname>Directory</classname>
3031
</ooclass>
3132

@@ -88,6 +89,12 @@
8889
</row>
8990
</thead>
9091
<tbody>
92+
<row>
93+
<entry>8.5.0</entry>
94+
<entry>
95+
该类现为最终类。
96+
</entry>
97+
</row>
9198
<row>
9299
<entry>8.1.0</entry>
93100
<entry>

reference/json/setup.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 7e42240fb5f565c469f04d595f0d1c4fdda48dfe Maintainer: daijie Status: ready -->
3+
<!-- EN-Revision: 2b5015d025e2b72b2a4dd894323961626872cac7 Maintainer: daijie Status: ready -->
44
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<chapter xml:id="json.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
&reftitle.setup;
@@ -18,9 +18,6 @@
1818
<para>
1919
PHP 8.0.0 之前,JSON 扩展默认捆绑并编译到 PHP 中,但可以使用 <option role="configure">--disable-json</option> 手动禁用。
2020
</para>
21-
<para>
22-
在 5.2.0 之前,JSON 扩展作为 <link xlink:href="&url.pecl.package;json">PECL 模块</link>安装。
23-
</para>
2421
</section>
2522

2623
</chapter>

reference/pdo/pdo/quote.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 661e6858acade9f5a08fc8f9c07b605f42f4a700 Maintainer: daijie Status: ready -->
4-
<!-- CREDITS: mowangjuanzi -->
3+
<!-- EN-Revision: a58aa95a35db6f3c5bebd8e4cff5c4abeea1441b Maintainer: daijie Status: ready -->
4+
<!-- CREDITS: mowangjuanzi, Luffy -->
55
<refentry xml:id="pdo.quote" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
77
<refname>PDO::quote</refname>
@@ -18,7 +18,7 @@
1818
</methodsynopsis>
1919

2020
<para>
21-
<methodname>PDO::quote</methodname> 为输入的字符串添加引号(如果有需要),并对特殊字符进行转义,且引号的风格和底层驱动适配。
21+
<methodname>PDO::quote</methodname> 为输入的字符串添加引号,并对特殊字符进行转义,且引号的风格和底层驱动适配。
2222
</para>
2323
<para>
2424
如果使用此函数构建 SQL 语句,<emphasis>强烈</emphasis>建议使用 <methodname>PDO::prepare</methodname> 配合参数构建,而不是用 <methodname>PDO::quote</methodname>

0 commit comments

Comments
 (0)