reference/array/functions/array-sum.xml
443d81b33e6537a000cc235c2a11748ba8d56232
...
...
@@ -8,7 +8,7 @@
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
-
<type>number</type><methodname>array_sum</methodname>
11
+
<type class="union"><type>int</type><type>float</type></type><methodname>array_sum</methodname>
12
12
<methodparam><type>array</type><parameter>array</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
...
...
@@ -37,6 +37,34 @@
37
37
<parameter>array</parameter> is empty.
38
38
</para>
39
39
</refsect1>
40
+

41
+
<refsect1 role="changelog">
42
+
&reftitle.changelog;
43
+
<para>
44
+
<informaltable>
45
+
<tgroup cols="2">
46
+
<thead>
47
+
<row>
48
+
<entry>&Version;</entry>
49
+
<entry>&Description;</entry>
50
+
</row>
51
+
</thead>
52
+
<tbody>
53
+
<row>
54
+
<entry>8.3.0</entry>
55
+
<entry>
56
+
Now emits <constant>E_WARNING</constant> when <parameter>array</parameter> values
57
+
cannot be converted to &integer; or &float;.
58
+
Previously &array;s and &object;s where ignored whilst every other value was cast to &integer;.
59
+
Moreover, objects that define a numeric cast (e.g. <classname>GMP</classname>) are now cast instead of ignored.
60
+
</entry>
61
+
</row>
62
+
</tbody>
63
+
</tgroup>
64
+
</informaltable>
65
+
</para>
66
+
</refsect1>
67
+

40
68
<refsect1 role="examples">
41
69
&reftitle.examples;
42
70
<para>
43
71