Skip to content

Commit 37b7b83

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents 802374d + a277389 commit 37b7b83

File tree

4 files changed

+34
-58
lines changed

4 files changed

+34
-58
lines changed

appendices/migration74/new-features.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,33 @@ class ChildProducer extends Producer {
7777
Full variance support is only available if autoloading is used. Inside a
7878
single file only non-cyclic type references are possible, because all
7979
classes need to be available before they are referenced.
80+
<informalexample>
81+
<programlisting role="php">
82+
<![CDATA[
83+
<?php
84+
85+
/**
86+
* These classes satisfy the LSP requirements, because C is a subtype of A.
87+
* However, at the time class B is declared, class C is not yet available
88+
*/
89+
class A
90+
{
91+
public function method(): A {}
92+
}
93+
94+
class B extends A
95+
{
96+
// Fatal error: Could not check compatibility between B::method():C and
97+
// A::method(): A, because class С is not available
98+
public function method(): С {}
99+
}
100+
101+
class C extends B {}
102+
103+
?>
104+
]]>
105+
</programlisting>
106+
</informalexample>
80107
</para>
81108
</sect3>
82109

reference/filesystem/functions/dirname.xml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -103,30 +103,6 @@ dirname('C:\\'); // Will return 'C:\' on Windows and '.' on *nix systems.
103103
</caution>
104104
</refsect1>
105105

106-
<refsect1 role="changelog">
107-
&reftitle.changelog;
108-
<para>
109-
<informaltable>
110-
<tgroup cols="2">
111-
<thead>
112-
<row>
113-
<entry>&Version;</entry>
114-
<entry>&Description;</entry>
115-
</row>
116-
</thead>
117-
<tbody>
118-
<row>
119-
<entry>7.0.0</entry>
120-
<entry>
121-
Added the optional <parameter>levels</parameter> parameter.
122-
</entry>
123-
</row>
124-
</tbody>
125-
</tgroup>
126-
</informaltable>
127-
</para>
128-
</refsect1>
129-
130106
<refsect1 role="examples">
131107
&reftitle.examples;
132108
<para>

reference/info/functions/getrusage.xml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,6 @@
4444
</para>
4545
</refsect1>
4646

47-
<refsect1 role="changelog">
48-
&reftitle.changelog;
49-
<para>
50-
<informaltable>
51-
<tgroup cols="2">
52-
<thead>
53-
<row>
54-
<entry>&Version;</entry>
55-
<entry>&Description;</entry>
56-
</row>
57-
</thead>
58-
<tbody>
59-
<row>
60-
<entry>7.0.0</entry>
61-
<entry>
62-
This function is now supported on Windows.
63-
</entry>
64-
</row>
65-
</tbody>
66-
</tgroup>
67-
</informaltable>
68-
</para>
69-
</refsect1>
70-
7147
<refsect1 role="examples">
7248
&reftitle.examples;
7349
<para>

reference/misc/functions/define.xml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@
4242
<term><parameter>value</parameter></term>
4343
<listitem>
4444
<para>
45-
The value of the constant. In PHP 5, <parameter>value</parameter> must
46-
be a <type>scalar</type> value (<type>int</type>,
47-
<type>float</type>, <type>string</type>, <type>bool</type>, or
48-
&null;). In PHP 7, <type>array</type> values are also accepted.
45+
The value of the constant.
4946
</para>
5047
<warning>
5148
<para>
@@ -102,21 +99,21 @@
10299
</thead>
103100
<tbody>
104101
<row>
105-
<entry>8.0.0</entry>
102+
<entry>8.1.0</entry>
106103
<entry>
107-
Passing &true; to <parameter>case_insensitive</parameter> now emits an <constant>E_WARNING</constant>. Passing &false; is still allowed.
104+
<parameter>value</parameter> can now be an object.
108105
</entry>
109106
</row>
110107
<row>
111-
<entry>7.3.0</entry>
108+
<entry>8.0.0</entry>
112109
<entry>
113-
<parameter>case_insensitive</parameter> has been deprecated and will be removed in version 8.0.0.
110+
Passing &true; to <parameter>case_insensitive</parameter> now emits an <constant>E_WARNING</constant>. Passing &false; is still allowed.
114111
</entry>
115112
</row>
116113
<row>
117-
<entry>7.0.0</entry>
114+
<entry>7.3.0</entry>
118115
<entry>
119-
<type>array</type> values are allowed.
116+
<parameter>case_insensitive</parameter> has been deprecated and will be removed in version 8.0.0.
120117
</entry>
121118
</row>
122119
</tbody>

0 commit comments

Comments
 (0)