[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-en] master: Fix changelog being at the wrong section
From: thinkverse via George Peter Banyard <noreply () php ! net>
Date: 2021-04-29 18:28:06
Message-ID: RTv4jBRhVwqRb2MzB29JWBL3P8gWOHkFYhzO4eCRKg () main ! php ! net
[Download RAW message or body]
Author: thinkverse (thinkverse)
Committer: George Peter Banyard (Girgias)
Date: 2021-04-29T19:28:16+01:00
Commit: https://github.com/php/doc-en/commit/8a7c2e03689cc5edf0dfb6710c9d3fe0b450849f
Raw diff: https://github.com/php/doc-en/commit/8a7c2e03689cc5edf0dfb6710c9d3fe0b450849f.diff
Fix changelog being at the wrong section
Changed paths:
M reference/array/functions/count.xml
Diff:
diff --git a/reference/array/functions/count.xml b/reference/array/functions/count.xml
index 241a65e5a8..d528048616 100644
--- a/reference/array/functions/count.xml
+++ b/reference/array/functions/count.xml
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
+
<refentry xml:id="function.count" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>count</refname>
<refpurpose>Count all elements in an array, or something in an object</refpurpose>
</refnamediv>
+
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
@@ -29,6 +31,7 @@
are implemented and used in PHP.
</para>
</refsect1>
+
<refsect1 role="parameters">
&reftitle.parameters;
<para>
@@ -63,6 +66,7 @@
</variablelist>
</para>
</refsect1>
+
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
@@ -74,6 +78,37 @@
<literal>0</literal> will be returned.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ <function>count</function> will now throw <classname>TypeError</classname> on
+ invalid countable types passed to the <parameter>value</parameter> parameter.
+ </entry>
+ </row>
+ <row>
+ <entry>7.2.0</entry>
+ <entry>
+ <function>count</function> will now yield a warning on invalid countable types
+ passed to the <parameter>value</parameter> parameter.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -171,35 +206,7 @@ echo count($food); // output 2
</example>
</para>
</refsect1>
- <refsect1 role="changelog">
- &reftitle.changelog;
- <informaltable>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>&Version;</entry>
- <entry>&Description;</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>8.0.0</entry>
- <entry>
- <function>count</function> will now throw <classname>TypeError</classname> on
- invalid countable types passed to the <parameter>value</parameter> parameter.
- </entry>
- </row>
- <row>
- <entry>7.2.0</entry>
- <entry>
- <function>count</function> will now yield a warning on invalid countable types
- passed to the <parameter>value</parameter> parameter.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<para>
@@ -212,7 +219,9 @@ echo count($food); // output 2
</simplelist>
</para>
</refsect1>
+
</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic