Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion language/control-structures/switch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ endswitch;
</informalexample>
</para>
<para>
It's possible to use a semicolon instead of a colon after a case like:
Prior to PHP 8.5.0, it was possible to use a semicolon instead of a colon after a case like:
<informalexample>
<programlisting role="php">
<![CDATA[
Expand All @@ -290,8 +290,32 @@ switch($beer)
]]>
</programlisting>
</informalexample>
This syntax has been deprecated as of PHP 8.5.0.
</para>


<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
The alternate syntax using a semicolon after <literal>case</literal> has been deprecated.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<sect2 role="seealso">
&reftitle.seealso;
<para>
Expand Down
Loading