[DOC-CVS] [doc-en] master: Reserved Keywords: minor improvements (#5774)

[email protected] (Juliette via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Juliette (jrfnl)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2026-08-19T18:19:39+01:00

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

Reserved Keywords: minor improvements (#5774)

Changed paths:
  M  appendices/reserved.xml


Diff:

diff --git a/appendices/reserved.xml b/appendices/reserved.xml
index 014002ea2dcd..399b84d2bc8a 100644
--- a/appendices/reserved.xml
+++ b/appendices/reserved.xml
@@ -19,7 +19,7 @@
     they're not, really: they are language constructs.
     The following words cannot be used as constants, class names, or function names. 
     They are, however, allowed as property, constant, and
-    method names of classes, interfaces and traits, except that
+    method names of classes, interfaces, traits and enums, except that
     <literal>class</literal> may not be used as constant name.
    </simpara>
 
@@ -318,12 +318,6 @@
        </entry>
        <entry>
        </entry>
-       <entry>
-       </entry>
-       <entry>
-       </entry>
-       <entry>
-       </entry>
       </row>
      </tbody>
     </tgroup>
@@ -510,7 +504,7 @@
   <sect1 xml:id="reserved.other-reserved-words">
    <title>List of other reserved words</title>
    <simpara>
-    The following words cannot be used to name a class, interface or trait.
+    The following words cannot be used to name a class, interface, trait or enum.
     Prior to PHP 8.0, they are also prohibited from being used in namespaces.
    </simpara>
    <para>
@@ -578,12 +572,12 @@
      </tgroup>
     </table>
    </para>
-   <para>
+   <simpara>
     The following list of words have had soft reservations placed on them.
-    Whilst they may still be used as class, interface, and trait names
+    Whilst they may still be used as class, interface, trait and enum names,
     usage of them is highly discouraged since they may be
     used in future versions of PHP.
-   </para>
+   </simpara>
    <para>
     <table>
      <title>Soft reserved words</title>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.