Doc #67973 [Opn]: ::class notation is not documented?
| From: | aharvey@php.net | Date: | Mon, 08 Sep 2014 05:15:07 +0000 |
| Subject: | Doc #67973 [Opn]: ::class notation is not documented? | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11471@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67973&edit=1
ID: 67973
Updated by: aharvey@php.net
Reported by: ianbytchek at gmail dot com
Summary: ::class notation is not documented?
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
We've got this at http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class,
but it may need to be more prominent in the OOP section. Leaving open to ponder.
Previous Comments:
------------------------------------------------------------------------
[2014-09-07 19:53:31] ianbytchek at gmail dot com
Description:
------------
Apparently we can do cool things with
class since 5.5, like:
static::class // MyNamespace\ClassC when run in A
self::class // MyNamespace\ClassA when run in A
parent::class // MyNamespace\ClassB when run in C
MyClass::class // MyNamespace\MyClass
But there seem to be no references to it in the official documentation. There are some scattered
things about it on the web, but not a lot. Is this official? Is it supported? Can this be
documented?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67973&edit=1