# ReflectionParameter::getClassName() missing

- Thread: https://externals.io/message/61810
- Original archive: https://news-web.php.net/php.internals/61810
- Started by Rasmus Schultz on 2012-07-26T13:40:13+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #61810 — Rasmus Schultz — 2012-07-26T13:40:13+00:00

URL: https://externals.io/message/61810#61810

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?
