Skip to content

Commit d149b6d

Browse files
CrelllacatoireGirgias
authored
Add deprecation/changelog for switch statement semicolons. (#4895)
Co-authored-by: Louis-Arnaud <la.catoire@gmail.com> Co-authored-by: Gina Peter Banyard <girgias@php.net>
1 parent bd3f9a8 commit d149b6d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

language/control-structures/switch.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,32 @@ switch($beer)
290290
]]>
291291
</programlisting>
292292
</informalexample>
293+
&warn.deprecated.feature-8-5-0;
293294
</para>
294295

296+
297+
<sect2 role="changelog">
298+
&reftitle.changelog;
299+
<informaltable>
300+
<tgroup cols="2">
301+
<thead>
302+
<row>
303+
<entry>&Version;</entry>
304+
<entry>&Description;</entry>
305+
</row>
306+
</thead>
307+
<tbody>
308+
<row>
309+
<entry>8.5.0</entry>
310+
<entry>
311+
The alternate syntax using a semicolon after <literal>case</literal> has been deprecated.
312+
</entry>
313+
</row>
314+
</tbody>
315+
</tgroup>
316+
</informaltable>
317+
</sect2>
318+
295319
<sect2 role="seealso">
296320
&reftitle.seealso;
297321
<para>

0 commit comments

Comments
 (0)