ReflectionClass::getMethod()
| From: | Andi Gutmans | Date: | Wed, 22 Dec 2004 22:28:47 +0000 |
| Subject: | ReflectionClass::getMethod() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-14163@lists.php.net to get a copy of this message | ||
Hi,
It seems that in the past few months ReflectionClass::getMethod() was changed to throw an Exception if the method doesn't exist. I don't understand the reasoning because as it's a reflection API I would expect it to return false and not an exception. Exceptions should be thrown for errors. As long as we don't have hasMethod() then I think this behavior is wrong.
Can anyone shed some light on this? Why was this changed? Marcus?
Thanks,
Andi