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.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php