[DOC-CVS] [doc-en] master: Namespaces: note that enums are affected (#4739)

[email protected] (DanielEScherzer via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: DanielEScherzer (DanielEScherzer)
Committer: GitHub (web-flow)
Pusher: DanielEScherzer
Date: 2025-06-22T11:38:42-07:00

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

Namespaces: note that enums are affected (#4739)

Co-authored-by: Tim Düsterhus <[email protected]>

Changed paths:
  M  language/namespaces.xml


Diff:

diff --git a/language/namespaces.xml b/language/namespaces.xml
index 714eb87550d3..e57a88c1dbce 100644
--- a/language/namespaces.xml
+++ b/language/namespaces.xml
@@ -91,7 +91,8 @@ echo constant($d); // see "Namespaces and dynamic language features" section
   <?phpdoc print-version-for="namespaces"?>
   <para>
    Although any valid PHP code can be contained within a namespace, only the following
-   types of code are affected by namespaces: classes (including abstracts and traits), interfaces, functions and constants.
+   types of code are affected by namespaces: classes (including abstract classes, traits and enums), interfaces,
+   functions and constants.
   </para>
   <para>
    Namespaces are declared using the <literal>namespace</literal>
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.