::class is a compile time transformation

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338498 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2016-01-15 13:31:35 +00:00
parent 351c52e74c
commit 45fc246e9f

View file

@ -380,6 +380,14 @@ NS\ClassName
</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>