On 11 Dec 2017 04:04, "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. The reflected object is not GC'd until the `ReflectionObject` instance is GC'd, so the API would be redundant. Maybe just produce the same hash as `ReflectionClass`, since those are often used interchangeably?