svn: /phpdoc/ja/trunk/language/ types/declarations.xml types/pseudo-types.xml types.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Wed, 02 Dec 2020 00:19:12 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=351834

Log:
Document mixed type (as of PHP 8.0.0)

As of PHP 8.0.0, the `mixed` type is available as proper type, so we
move the respective info out of the pseudo types section, which can be
removed now, since it is practically empty.

Changed paths:
    U   phpdoc/ja/trunk/language/types/declarations.xml
    D   phpdoc/ja/trunk/language/types/pseudo-types.xml
    U   phpdoc/ja/trunk/language/types.xml

Modified: phpdoc/ja/trunk/language/types/declarations.xml
===================================================================
--- phpdoc/ja/trunk/language/types/declarations.xml	2020-12-02 00:18:01 UTC (rev 351833)
+++ phpdoc/ja/trunk/language/types/declarations.xml	2020-12-02 00:19:12 UTC (rev 351834)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351382 Maintainer: mumumu Status: ready -->
+<!-- EN-Revision: 351804 Maintainer: mumumu Status: ready -->

 <sect1 xml:id="language.types.declarations">
  <title>型宣言</title>
@@ -154,6 +154,21 @@
    </para>
   </warning>

+ <sect3 xml:id="language.types.declarations.mixed">
+  <title>mixed 型</title>
+
+  <para>
+   <type>mixed</type> 型は、
+   以下の <link linkend="language.types.declarations.union">union 型</link> と同等です。
+   <type class="union">
+    <type>array</type><type>bool</type><type>callable</type><type>int</type><type>float</type>
+    <type>object</type><type>resource</type><type>string</type><type>null</type>
+   </type>
+
+   この型は、PHP 8.0.0 以降で利用可能です。
+  </para>
+ </sect3>
+
   <sect3 xml:id="language.types.declarations.examples">
    &reftitle.examples;
    <example>

Deleted: phpdoc/ja/trunk/language/types/pseudo-types.xml
===================================================================
--- phpdoc/ja/trunk/language/types/pseudo-types.xml	2020-12-02 00:18:01 UTC (rev 351833)
+++ phpdoc/ja/trunk/language/types/pseudo-types.xml	2020-12-02 00:19:12 UTC (rev 351834)
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<!-- EN-Revision: 351798 Maintainer: takagi Status: ready -->
-<!-- CREDITS: hirokawa,shimooka,mumumu -->
-<sect1 xml:id="language.pseudo-types">
- <title>本ドキュメントにおける疑似的な型および変数</title>
- <para>
-  擬似型は、PHPドキュメントで引数が持つことができる型や値を指定するために使用されるキーワードです。 PHP言語のプリミティブではないことに注意してください。 したがって、独自のカスタム関数では、型ヒントとして擬似型を使用することはできません。
- </para>
- <sect2 xml:id="language.types.mixed">
-  <!-- TODO: Proper page or do a new page "Type declarations" and move the part from function reference into it -->
-  <title>mixed</title>
-
-  <para>
-   <literal>mixed</literal> は、引数に多様な型 (全てである必要はない)
-   を使うことができることを示します。
-  </para>
-
-  <para>
-   例えば <function>gettype</function> 関数は全ての PHP の型を受け入れるのに対し、
-   <function>str_replace</function> は <type>string</type> と <type>array</type> のみを受け入れます。
-  </para>
-
- </sect2>
-
-</sect1>
-
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-indent-tabs-mode:nil
-sgml-parent-document:nil
-sgml-default-dtd-file:"~/.phpdoc/manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->

Modified: phpdoc/ja/trunk/language/types.xml
===================================================================
--- phpdoc/ja/trunk/language/types.xml	2020-12-02 00:18:01 UTC (rev 351833)
+++ phpdoc/ja/trunk/language/types.xml	2020-12-02 00:19:12 UTC (rev 351834)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351700 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 351804 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: takagi,shimooka,mumumu -->
 <chapter xml:id="language.types" xmlns="http://docbook.org/ns/docbook">
  <title>型</title>
@@ -96,21 +96,6 @@

   </itemizedlist>

-  <para>
-   本マニュアルでは、可読性を向上させるため、以下のような<link
-   linkend="language.pseudo-types">擬似的な型</link>も使用します。
-  </para>
-
-  <itemizedlist>
-
-   <listitem>
-    <simpara>
-     <type>mixed</type>
-    </simpara>
-   </listitem>
-
-  </itemizedlist>
-
   <simpara>
    マニュアル内のいくつかの場所で "double" 型という記述が残っているかもしれません。
    double は float と同じものだと考えてください。2 種類の名前が存在するのは、
@@ -192,7 +177,6 @@
  &language.types.null;
  &language.types.callable;
  &language.types.declarations;
- &language.types.pseudo-types;
  &language.types.type-juggling;

 </chapter>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.