ReflectionParameter::getClassName() missing
| From: | Rasmus Schultz | Date: | Thu, 26 Jul 2012 13:40:13 +0000 |
| Subject: | ReflectionParameter::getClassName() missing | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-61810@lists.php.net to get a copy of this message | ||
I was doing some work with the Reflection API, and I ran into something
missing from ReflectionParameter.
Turns out, there's no way to get the class-name of a parameter, short of
calling getClass() - the problem with that is, there's no way to get the
class-name of a parameter without causing the class itself to autoload.
Okay, so I can work around that by __toString() and parsing that, but that
seems rather hacky.
Thoughts?