Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.4] Function return type changesの翻訳 #209

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions reference/misc/functions/highlight-string.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: 443d81b33e6537a000cc235c2a11748ba8d56232 Maintainer: hirokawa Status: ready -->
<!-- EN-Revision: ba50f222e7108287fb6eb11265c2b28efe0cc0ce Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry xml:id="function.highlight-string" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand All @@ -11,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>bool</type></type><methodname>highlight_string</methodname>
<type class="union"><type>string</type><type>true</type></type><methodname>highlight_string</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -51,8 +51,7 @@
<para>
<parameter>return</parameter> が &true; の場合は、
ハイライトされたコードを文字列として返し、表示しません。
それ以外の場合は、成功した場合に &true;、
失敗した場合に &false; を返します。
それ以外の場合は、&true; を返します。
</para>
</refsect1>

Expand All @@ -68,6 +67,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
戻り値の型が、<type class="union"><type>string</type><type>bool</type></type> から
<type class="union"><type>string</type><type>true</type></type> に変更されました。
</entry>
</row>
<row>
<entry>8.3.0</entry>
<entry>
Expand Down
11 changes: 8 additions & 3 deletions reference/network/functions/long2ip.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: d715365c098db000eaf7dcd987ee6093f6e83091 Maintainer: hirokawa Status: ready -->
<!-- EN-Revision: 2537e56cce341e1c14cf2f0e49e5378700f84897 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi,mumumu -->
<refentry xml:id="function.long2ip" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -39,8 +39,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
インターネットの IP アドレスを表す文字列を返します。
&return.falseforfailure;
インターネットの IP アドレスを表す<type>文字列</type>を返します。
</para>
</refsect1>

Expand All @@ -55,6 +54,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
戻り値の型が、<type class="union"><type>string</type><type>false</type></type> から <type>string</type> に変更されました。
</entry>
</row>
<row>
<entry>7.1.0</entry>
<entry>
Expand Down
29 changes: 27 additions & 2 deletions reference/var/functions/print-r.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: ccc438a27bae31d71fe2ca7dc095360db5bc1af6 Maintainer: hirokawa Status: ready -->
<!-- EN-Revision: 649598d5e2965b2565f7724cdb4fd4f094d4c81e Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka -->
<refentry xml:id="function.print-r" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand All @@ -13,7 +13,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>bool</type></type><methodname>print_r</methodname>
<type class="union"><type>string</type><type>true</type></type><methodname>print_r</methodname>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>return</parameter><initializer>&false;</initializer></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -70,6 +70,31 @@
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
戻り値の型が、<type class="union"><type>string</type><type>bool</type></type> から
<type class="union"><type>string</type><type>true</type></type> に変更されました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
Loading