[DOC-CVS] [doc-en] master: Add deprecation/changelog for switch statement semicolons. (#4895)

[email protected] (Larry Garfield via GitHub) Wed, 8 Jul 2026 14:27:24 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Larry Garfield (Crell)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-07-08T15:27:21+01:00

Commit: https://github.com/php/doc-en/commit/d149b6ddca64beb9de38cbd4bfd8d19d3bd0b60e
Raw diff: https://github.com/php/doc-en/commit/d149b6ddca64beb9de38cbd4bfd8d19d3bd0b60e.diff

Add deprecation/changelog for switch statement semicolons. (#4895)

Co-authored-by: Louis-Arnaud <[email protected]>
Co-authored-by: Gina Peter Banyard <[email protected]>

Changed paths:
  M  language/control-structures/switch.xml


Diff:

diff --git a/language/control-structures/switch.xml b/language/control-structures/switch.xml
index 3ffa3a6098ca..2e5e06a86a84 100644
--- a/language/control-structures/switch.xml
+++ b/language/control-structures/switch.xml
@@ -290,8 +290,32 @@ switch($beer)
 ]]>
    </programlisting>
   </informalexample>
+  &warn.deprecated.feature-8-5-0;
  </para>
 
+
+ <sect2 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>
+ </sect2>
+
  <sect2 role="seealso">
   &reftitle.seealso;
   <para>