[doc-en] master: Namespaces: note that enums are affected (#4739)
| From: | DanielEScherzer via GitHub | Date: | Sun, 22 Jun 2025 18:51:09 +0000 |
| Subject: | [doc-en] master: Namespaces: note that enums are affected (#4739) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22702@lists.php.net to get a copy of this message | ||
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 <timwolla@googlemail.com>
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>