File tree Expand file tree Collapse file tree 4 files changed +34
-58
lines changed Expand file tree Collapse file tree 4 files changed +34
-58
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,33 @@ class ChildProducer extends Producer {
77
77
Full variance support is only available if autoloading is used. Inside a
78
78
single file only non-cyclic type references are possible, because all
79
79
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 >
80
107
</para >
81
108
</sect3 >
82
109
Original file line number Diff line number Diff line change @@ -103,30 +103,6 @@ dirname('C:\\'); // Will return 'C:\' on Windows and '.' on *nix systems.
103
103
</caution >
104
104
</refsect1 >
105
105
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
-
130
106
<refsect1 role =" examples" >
131
107
&reftitle.examples;
132
108
<para >
Original file line number Diff line number Diff line change 44
44
</para >
45
45
</refsect1 >
46
46
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
-
71
47
<refsect1 role =" examples" >
72
48
&reftitle.examples;
73
49
<para >
Original file line number Diff line number Diff line change 42
42
<term ><parameter >value</parameter ></term >
43
43
<listitem >
44
44
<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.
49
46
</para >
50
47
<warning >
51
48
<para >
102
99
</thead >
103
100
<tbody >
104
101
<row >
105
- <entry >8.0 .0</entry >
102
+ <entry >8.1 .0</entry >
106
103
<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 .
108
105
</entry >
109
106
</row >
110
107
<row >
111
- <entry >7.3 .0</entry >
108
+ <entry >8.0 .0</entry >
112
109
<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 .
114
111
</entry >
115
112
</row >
116
113
<row >
117
- <entry >7.0 .0</entry >
114
+ <entry >7.3 .0</entry >
118
115
<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 .
120
117
</entry >
121
118
</row >
122
119
</tbody >
You can’t perform that action at this time.
0 commit comments