Inconsistency in Reflection API
| From: | Sebastian Bergmann | Date: | Sat, 18 Feb 2006 17:26:25 +0000 |
| Subject: | Inconsistency in Reflection API | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-21913@lists.php.net to get a copy of this message | ||
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