Req #77975 [Opn->Fbk]: support $object::CLASS
| From: | requinix@php.net | Date: | Mon, 06 May 2019 14:57:59 +0000 |
| Subject: | Req #77975 [Opn->Fbk]: support $object::CLASS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220717@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77975&edit=1
ID: 77975
Updated by: requinix@php.net
Reported by: Wes dot nospam at example dot org
Summary: support $object::CLASS
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: Class/Object related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Problem is that ::class is compile-time.
Why not get_class()?
Previous Comments:
------------------------------------------------------------------------
[2019-05-06 14:25:39] Wes dot nospam at example dot org
Description:
------------
Would be great to align $object::CLASS to behave like other constants, even if CLASS isn't
actually one.
The current result is:
Fatal error: Dynamic class names are not allowed in compile-time ::class fetch in
Thank you
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77975&edit=1