Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98196 invoked from network); 21 Jun 2018 16:51:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2018 16:51:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.51 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.218.51 mail-oi0-f51.google.com Received: from [209.85.218.51] ([209.85.218.51:43912] helo=mail-oi0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/75-32156-477DB2B5 for ; Thu, 21 Jun 2018 12:51:00 -0400 Received: by mail-oi0-f51.google.com with SMTP id t133-v6so3529629oif.10 for ; Thu, 21 Jun 2018 09:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VvL6hCfQR6BPnFc1zS5aGoVActifXVSmpDrdaVMN8pg=; b=dvm12kBCuTtBKoXFjZXM2kgvRmiY9iuPtDiIBBp8sjPF8RiZQKs0MpODT/oL1zir0n Z4G/u0FLta8e8U+csteGYLy96c9zqShfQkwgvz9C1rA5QYSQ7rGJdp+P/JIxTNr6kzLL j/aHAxKGgEXOongPTz5hozYaTQ+sD3bbMw//rSx284+iZW/U/1JHANXKgi8SkzPa0BXD 4Sf+eEx5qmc4JiGc6hNs3uOdamwTQu7JYN/TrGXfqxL0TLIBg6pfodB2CJtSCOD3lMwQ vtIDpgSRQ9nFzFNJ0kdlIQMekUrbe3733SN93oMOLieUwU8xQV3RonANE/Qv5FEPYZwj nuOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VvL6hCfQR6BPnFc1zS5aGoVActifXVSmpDrdaVMN8pg=; b=WfTG8pmNThNKMYX6S9zuIVasAWOEUibV0gExEwsr+Sjs3regxnSWBwV2Z4lnQN8IXM sKx/2xsWgap2hlHRhJBxVMe3xOE6lU4vftrHWH+Xyc3IjKmVqnJ8nj3PIvfzkby4PJx/ IOW5/UTTOPYTHXxcfkeSXxfxkHYr60ViXhBzykryiJJqh8Jbc+3WG59w64TcopeKbDAt 57apo0z19ysaTwLU9bW5czHMiVGKtMN6PMejZBSCIc01M+xcRVHD6FX0kS6XZAXV0J4S 5o5oOVPcdslqzdN0uYVC4jU2Wq2oDa//oYFjjzcTHACH7PVsnJpH4D9CoZSRIOm/zsjR 68jg== X-Gm-Message-State: APt69E2zo9HXCeGbNB3fgYo99RvUDkKHaWMlk5/1bR0MnxLcAyEu9x8O 2ibsJYrvvCSI/Jpyw4CJQgMl+3I5688T2C32zM4= X-Google-Smtp-Source: ADUXVKKzfVElwZzGoX6hGK+6CLryTn465MLjBYzTden6PY0zcIlOXbmUZr9xpxuy0B/QdNTFMyNBGc7A5hWB1faiYMs= X-Received: by 2002:aca:4a4a:: with SMTP id x71-v6mr15343662oia.211.1529599857908; Thu, 21 Jun 2018 09:50:57 -0700 (PDT) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 2002:a4a:8b28:0:0:0:0:0 with HTTP; Thu, 21 Jun 2018 09:50:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jun 2018 18:50:37 +0200 X-Google-Sender-Auth: 4VRGtxBo792Xr71fo2G7koC_CmQ Message-ID: To: Bob Weinand Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="0000000000002de086056f29b8d0" Subject: Re: [PHP-DEV] [RFC] Typed Properties From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --0000000000002de086056f29b8d0 Content-Type: text/plain; charset="UTF-8" > 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? --0000000000002de086056f29b8d0--