1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

Namespaces: note that enums are affected (#4739)

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
This commit is contained in:
DanielEScherzer
2025-06-22 11:38:42 -07:00
committed by GitHub
parent 7c125c7d45
commit 1651836ff3

View File

@@ -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>