Inconsistency in Reflection API

php.internals

Sebastian Bergmann

20 years ago
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