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
16 changes: 5 additions & 11 deletions appendices/reserved.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -318,12 +318,6 @@
</entry>
<entry>
</entry>
<entry>
</entry>
<entry>
</entry>
<entry>
</entry>
</row>
</tbody>
</tgroup>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down