From 45fc246e9fa66e3eed77c124f1c7d1681cf46cb1 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Fri, 15 Jan 2016 13:31:35 +0000 Subject: [PATCH] ::class is a compile time transformation git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338498 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index a0533f9dda..6f5ec49429 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -380,6 +380,14 @@ NS\ClassName + + The class name resolution using ::class is a + compile time transformation. That means at the time the class name string + is created no autoloading has happened yet. As a consequence, class names + are expanded even if the class does not exist. No error is issued in + that case. + +