# Inconsistency in Reflection API

- Thread: https://externals.io/message/21913
- Original archive: https://news-web.php.net/php.internals/21913
- Started by Sebastian Bergmann on 2006-02-18T17:26:25+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

---

## #21913 — Sebastian Bergmann — 2006-02-18T17:26:25+00:00

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

Last night I noticed an inconsistency in the Reflection API, namely

   ReflectionParameter::getClass() vs.
   ReflectionMethod::getDeclaringClass() and
   ReflectionProperty::getDeclaringClass()

 I think we should use either getClass() or getDeclaringClass()
 consistently (I prefer getClass()).

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
