Yes, there always is a reason. But when we test and create mocks, this reasons can go aside. This is the same with ReflectionProperty::setAccessible() etc. They shouldn't be used normally, but in special cases like testing it's necessary.
Jan Dolecek juzna...@gmail.com On Tue, Jan 17, 2012 at 2:01 PM, Ferenc Kovacs <tyr...@gmail.com> wrote: >> >> if a class is marked as final, there must be some reason for it to be a >> final. >> >> if you remove the final and extends it, may lead to bad error. >> >> > reflection should always be used with care. > > -- > Ferenc Kovács > @Tyr43l - http://tyrael.hu -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php