reference/phar/Phar/convertToData.xml
f03806fcd8fe03a0501bd40b6e3939ff6589a1d2
...
...
@@ -9,11 +9,11 @@
9
9

10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>PharData</type><methodname>Phar::convertToData</methodname>
14
-
<methodparam choice="opt"><type>int</type><parameter>format</parameter><initializer>9021976</initializer></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>compression</parameter><initializer>9021976</initializer></methodparam>
16
-
<methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam>
12
+
<methodsynopsis role="Phar">
13
+
<modifier>public</modifier> <type class="union"><type>PharData</type><type>null</type></type><methodname>Phar::convertToData</methodname>
14
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>format</parameter><initializer>&null;</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>compression</parameter><initializer>&null;</initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>extension</parameter><initializer>&null;</initializer></methodparam>
17
17
</methodsynopsis>
18
18

19
19
<para>
...
...
@@ -81,8 +81,8 @@
81
81
<refsect1 role="returnvalues">
82
82
&reftitle.returnvalues;
83
83
<para>
84
-
The method returns a <classname>PharData</classname> object on success and throws an
85
-
exception on failure.
84
+
The method returns a <classname>PharData</classname> object on success,
85
+
or &null; on failure.
86
86
</para>
87
87
</refsect1>
88
88

...
...
@@ -98,6 +98,28 @@
98
98
</para>
99
99
</refsect1>
100
100

101
+
<refsect1 role="changelog">
102
+
&reftitle.changelog;
103
+
<informaltable>
104
+
<tgroup cols="2">
105
+
<thead>
106
+
<row>
107
+
<entry>&Version;</entry>
108
+
<entry>&Description;</entry>
109
+
</row>
110
+
</thead>
111
+
<tbody>
112
+
<row>
113
+
<entry>8.0.0</entry>
114
+
<entry>
115
+
<parameter>format</parameter>, <parameter>compression</parameter>, and <parameter>extension</parameter> are now nullable.
116
+
</entry>
117
+
</row>
118
+
</tbody>
119
+
</tgroup>
120
+
</informaltable>
121
+
</refsect1>
122
+

101
123
<refsect1 role="examples">
102
124
&reftitle.examples;
103
125
<para>
...
...
@@ -143,7 +165,6 @@ try {
143
165
</refsect1>
144
166

145
167
</refentry>
146
-

147
168
<!-- Keep this comment at the end of the file
148
169
Local variables:
149
170
mode: sgml
150
171