Is there an RFC/discussion for ::class being a specific type?

From: Date: Tue, 16 Nov 2021 17:22:01 +0000
Subject: Is there an RFC/discussion for ::class being a specific type?
Groups: php.internals 
Request: Send a blank email to internals+get-116419@lists.php.net to get a copy of this message
It is common (with DI systems for example) and to my knowledge not particularly discouraged to have function parameters that are supposed to accept something like Foo::class, which currently is a string. It seems logical to ask for a special type that can hold class names, so that parameters that can accept a class name can be type hinted more specifically than just (any) "string". Regardless of whether or not such a proposal would be accepted or declined (for complexity reasons maybe) I couldn't even find any such proposal. Has this really never been asked?

« previous php.internals (#116419) next »