reference/phar/Phar/setDefaultStub.xml
f03806fcd8fe03a0501bd40b6e3939ff6589a1d2
...
...
@@ -1,16 +1,16 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="phar.setdefaultstub">
3
+
<refentry xml:id="phar.setdefaultstub" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>Phar::setDefaultStub</refname>
6
6
<refpurpose>Used to set the PHP loader or bootstrap stub of a Phar archive to the default loader</refpurpose>
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
10
+
<methodsynopsis role="Phar">
11
11
<modifier>public</modifier> <type>bool</type><methodname>Phar::setDefaultStub</methodname>
12
-
<methodparam choice="opt"><type>string</type><parameter>index</parameter></methodparam>
13
-
<methodparam choice="opt"><type>string</type><parameter>webindex</parameter></methodparam>
12
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>index</parameter><initializer>&null;</initializer></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>webIndex</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
&phar.write;
16
16
<para>
...
...
@@ -32,7 +32,7 @@
32
32
</listitem>
33
33
</varlistentry>
34
34
<varlistentry>
35
-
<term><parameter>webindex</parameter></term>
35
+
<term><parameter>webIndex</parameter></term>
36
36
<listitem>
37
37
<para>
38
38
Relative path within the phar archive to run if accessed through a web browser
...
...
@@ -61,6 +61,28 @@
61
61
</para>
62
62
</refsect1>
63
63

64
+
<refsect1 role="changelog">
65
+
&reftitle.changelog;
66
+
<informaltable>
67
+
<tgroup cols="2">
68
+
<thead>
69
+
<row>
70
+
<entry>&Version;</entry>
71
+
<entry>&Description;</entry>
72
+
</row>
73
+
</thead>
74
+
<tbody>
75
+
<row>
76
+
<entry>8.0.0</entry>
77
+
<entry>
78
+
<parameter>webIndex</parameter> is nullable now.
79
+
</entry>
80
+
</row>
81
+
</tbody>
82
+
</tgroup>
83
+
</informaltable>
84
+
</refsect1>
85
+

64
86
<refsect1 role="examples">
65
87
&reftitle.examples;
66
88
<para>
...
...
@@ -97,7 +119,6 @@ try {
97
119
</refsect1>
98
120

99
121
</refentry>
100
-

101
122
<!-- Keep this comment at the end of the file
102
123
Local variables:
103
124
mode: sgml
104
125