Re: [RFC] Typed Properties
| From: | Nicolas Grekas | Date: | Thu, 21 Jun 2018 17:37:23 +0000 |
| Subject: | Re: [RFC] Typed Properties | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102360@lists.php.net to get a copy of this message | ||
>
> if ((new ReflectionReference($array[$key]))->getRefcount() > 2) { /* is
> ref */ } else { /* not a ref */ }, for computing the allowed types you’d
> intersect the types of the ReflectionProperties returned by
> getReferencingProperties().
>
Would work also I suppose, sounds good thanks for caring :)