Re: [RFC] get_debug_type
| From: | Tom Gerrits | Date: | Mon, 17 Feb 2020 08:10:44 +0000 |
| Subject: | Re: [RFC] get_debug_type | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108636@lists.php.net to get a copy of this message | ||
Hi Mark
Thanks for this proposal.
After the proposal by Nikita to allow ::class on object variables, would it be opportune to add ::type for any variable, with this behavior?
It could behave like ::class on objects and return a string indicator of the type for other types, such as scalar ones.
This could even include allowing ::type on actual types, i.e. int::type, MyClass::type, $myVar::type, GenericTypeInTheFuture<T>::type, and so on.