Re: [RFC] Typed Properties

From: Date: Thu, 21 Jun 2018 16:50:37 +0000
Subject: Re: [RFC] Typed Properties
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-102358@lists.php.net to get a copy of this message
> something like a ReflectionReference class, which will give you the > referencing properties via ReflectionProperty instances > I may not have the object when walking on data structures, but only the reference (in an array.) It could work this way I suppose: `ReflectionReference::fromArray(array $array, string $key): ?ReflectionReference`, returning null when $array[$key] is not a reference, and the instance otherwise. WDYT?

« previous php.internals (#102358) next »