mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
::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:
parent
351c52e74c
commit
45fc246e9f
1 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue