From 1651836ff309efd14a795eff44ee51455f66c7d3 Mon Sep 17 00:00:00 2001 From: DanielEScherzer Date: Sun, 22 Jun 2025 11:38:42 -0700 Subject: [PATCH] Namespaces: note that enums are affected (#4739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tim Düsterhus --- language/namespaces.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/language/namespaces.xml b/language/namespaces.xml index 714eb87550..e57a88c1db 100644 --- a/language/namespaces.xml +++ b/language/namespaces.xml @@ -91,7 +91,8 @@ echo constant($d); // see "Namespaces and dynamic language features" section 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. Namespaces are declared using the namespace