Skip to content

Commit 447180c

Browse files
committed
Update the methodsynopsis of some recently changed stubs (php/doc-en#625)
1 parent 86bc71d commit 447180c

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

reference/session/sessionhandler/read.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: 151e61773c016edcae8fd4989ad9a86ffd03c283 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1367cac761756ee4fce7c63be945b115f2924795 Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55

66
<refentry xml:id="sessionhandler.read" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,7 +12,7 @@
1212
<refsect1 role="description">
1313
&reftitle.description;
1414
<methodsynopsis>
15-
<modifier>public</modifier> <type>string</type><methodname>SessionHandler::read</methodname>
15+
<modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>SessionHandler::read</methodname>
1616
<methodparam><type>string</type><parameter>id</parameter></methodparam>
1717
</methodsynopsis>
1818
<para>
@@ -57,7 +57,7 @@
5757
<refsect1 role="returnvalues">
5858
&reftitle.returnvalues;
5959
<para>
60-
読み込んだデータを常に文字列で返します。何も読まなかった場合は空文字列を返さなければなりません
60+
読み込んだデータを常に文字列で返します。何も読まなかった場合は &false; を返さなければなりません
6161
この値は、PHP の内部で処理されるものであることに注意しましょう。
6262
</para>
6363
</refsect1>

reference/session/sessionhandlerinterface/read.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: 151e61773c016edcae8fd4989ad9a86ffd03c283 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1367cac761756ee4fce7c63be945b115f2924795 Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="sessionhandlerinterface.read" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -11,7 +11,7 @@
1111
<refsect1 role="description">
1212
&reftitle.description;
1313
<methodsynopsis>
14-
<modifier>abstract</modifier> <modifier>public</modifier> <type>string</type><methodname>SessionHandlerInterface::read</methodname>
14+
<modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>SessionHandlerInterface::read</methodname>
1515
<methodparam><type>string</type><parameter>id</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
@@ -25,7 +25,7 @@
2525
このメソッドは、指定したセッション ID のセッションデータをストレージから取得しなければなりません。
2626
返す文字列の書式は、<function>SessionHandlerInterface::write</function>
2727
に渡されたものと同様にシリアライズされたものでなければなりません。
28-
データが見つからない場合は空文字列を返します
28+
データが見つからない場合は &false; を返します
2929
</para>
3030
<para>
3131
このメソッドが返すデータは、PHP が内部的にデコードします。デコードに使うメソッドは

reference/simplexml/simplexmlelement/addChild.xml

Lines changed: 3 additions & 2 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: 5916fd8f742127259912e6510904451849928020 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1367cac761756ee4fce7c63be945b115f2924795 Maintainer: takagi Status: ready -->
44
<refentry xml:id="simplexmlelement.addchild" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>SimpleXMLElement::addChild</refname>
@@ -11,7 +11,7 @@
1111
<refsect1 role="description">
1212
&reftitle.description;
1313
<methodsynopsis>
14-
<modifier>public</modifier> <type>SimpleXMLElement</type><methodname>SimpleXMLElement::addChild</methodname>
14+
<modifier>public</modifier> <type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>SimpleXMLElement::addChild</methodname>
1515
<methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam>
1616
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>value</parameter><initializer>&null;</initializer></methodparam>
1717
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>namespace</parameter><initializer>&null;</initializer></methodparam>
@@ -59,6 +59,7 @@
5959
<literal>addChild</literal> メソッドは、
6060
XML ノードに追加した子要素を表す
6161
<type>SimpleXMLElement</type> オブジェクトを返します。
62+
失敗時に &null; を返します。
6263
</para>
6364
</refsect1>
6465

reference/simplexml/simplexmlelement/xpath.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: 5916fd8f742127259912e6510904451849928020 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1367cac761756ee4fce7c63be945b115f2924795 Maintainer: takagi Status: ready -->
44
<!-- CREDITS: hirokawa,shimooka -->
55
<refentry xml:id="simplexmlelement.xpath" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -11,7 +11,7 @@
1111
<refsect1 role="description">
1212
&reftitle.description;
1313
<methodsynopsis>
14-
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>SimpleXMLElement::xpath</methodname>
14+
<modifier>public</modifier> <type class="union"><type>array</type><type>null</type><type>false</type></type><methodname>SimpleXMLElement::xpath</methodname>
1515
<methodparam><type>string</type><parameter>expression</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
@@ -41,7 +41,7 @@
4141
&reftitle.returnvalues;
4242
<para>
4343
SimpleXMLElement オブジェクトの<type>配列</type>を返します。
44-
エラーが発生した場合は &false; を返します。
44+
エラーが発生した場合は &null; または &false; を返します。
4545
</para>
4646
</refsect1>
4747

0 commit comments

Comments
 (0)