svn: /phpdoc/en/trunk/language/oop5/ basic.xml
| From: | Christoph Michael Becker | Date: | Fri, 15 Jan 2016 13:31:35 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ basic.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13983@lists.php.net to get a copy of this message | ||
cmb Fri, 15 Jan 2016 13:31:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338498
Log:
::class is a compile time transformation
Changed paths:
U phpdoc/en/trunk/language/oop5/basic.xml
Modified: phpdoc/en/trunk/language/oop5/basic.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/basic.xml 2016-01-15 13:24:06 UTC (rev 338497)
+++ phpdoc/en/trunk/language/oop5/basic.xml 2016-01-15 13:31:35 UTC (rev 338498)
@@ -380,6 +380,14 @@
</screen>
</example>
</para>
+ <note>
+ <para>The class name resolution using <literal>::class</literal> 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.
+ </para>
+ </note>
</sect2>
</sect1>