On 11 December 2017 at 04:03, Andreas Hennings <andr...@dqxtech.net> wrote: > So far this proposal only discusses reflections of PHP declarations / symbols. > > What would we do for e.g. ReflectionObject? > Return the spl_object_hash()? > Or return the hash of the instantiated class? > Or a hash of the serialized object? > We need to return something, because ReflectionObject extends ReflectionClass.
If the method is instead named ::getDeclarationHash(), it will be clear that ReflectionObject->getDeclarationHash() will be the same as for the instantiated class. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php