Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2364 invoked from network); 21 Jun 2018 17:37:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2018 17:37:49 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.174 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-ot0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:34346] helo=mail-ot0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/26-32156-B62EB2B5 for ; Thu, 21 Jun 2018 13:37:48 -0400 Received: by mail-ot0-f174.google.com with SMTP id r18-v6so4529778otk.1 for ; Thu, 21 Jun 2018 10:37:47 -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=1UdrA337jVuwNgeez322DlAfFQwSPBD3zb6STxTwug0=; b=pJ7HiACPeFwci+4bFxCI0hj3ZpqwvO1gBkjcbH3kWV4hRJmJDj8i13oZIFOM6mUYRf CdxdHtZyL/TihuVAKuThzkYEgbiJ6DPO49ojP13g1qSdCvFQ2Lk9RURZF13/iaEwRyDy 1yaXFCBNBixPsfnOO06LeX98wiWfsgJ93NgxdmnGeYqIc6L8eEcQ/VWZKgFzFroHmqjG f76uwe1jKKxdA//jXUP5Rfjg7D1ZNQKyZEG+av4JhGDanYM5Bi89Gwdj5107tnATzuKP grdATtm2nMaXbYuJUXsRMzytMv7S85L5HOhBF6LY73rqwucW+cRcY5s51WygOuaYvFE4 aT4A== 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=1UdrA337jVuwNgeez322DlAfFQwSPBD3zb6STxTwug0=; b=gncVvTGosRTWMXXVttfex1ZCQ3455JMB3PaJvWH6sb2kbhFMaxEUP9nwHlz5pDrm7P A6VlMldTP3/d9ckomOvBJokQbUZ9zBeesyQ9Oz4O9phCW69ptKW73OURpWeK+lATzOj3 Jw0dSAVjzdIQo9E6Al70hVIBs6aI8vn71ZyYoQkGAEnytfT2eD/JZwQgnWo5jnwT5Bht cm5zi2Z2u3OrvblGjHdOK1nlMWlHPPcSnSmNKF2rzxtgrSNTHMCApJa2KUx4g77zk0Sa CUlzz43t8beLwltTXhawOCsM2DltGZ6ocxFEHTDcpNZ88ITHs+f81HUYbmpFPGpIbtE8 bhcg== X-Gm-Message-State: APt69E1gFt8GdOYa+/mwG3yh6unMDHbUwA1I1CTB5mTpTKDJFBH2g3Z5 26uGxwPEb9x60+uibXufTKpenqk+E0GvGuS3nmI= X-Google-Smtp-Source: ADUXVKJbUvjl8rU5NsmpDGSV0pFmSohR8s+IBcjlu3bXMFdWvCv+aaDPTtY3YGEF+7Pqdn259gcWTtif4Bb4L/jFc2g= X-Received: by 2002:a9d:3e09:: with SMTP id a9-v6mr11395509otd.269.1529602664385; Thu, 21 Jun 2018 10:37:44 -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 10:37:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jun 2018 19:37:23 +0200 X-Google-Sender-Auth: Pu3TCRMqWUXdd1rOScHV3Cyh0uA Message-ID: To: Bob Weinand Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000755369056f2a5f9c" Subject: Re: [PHP-DEV] [RFC] Typed Properties From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000755369056f2a5f9c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > if ((new ReflectionReference($array[$key]))->getRefcount() > 2) { /* is > ref */ } else { /* not a ref */ }, for computing the allowed types you=E2= =80=99d > intersect the types of the ReflectionProperties returned by > getReferencingProperties(). > Would work also I suppose, sounds good thanks for caring :) --000000000000755369056f2a5f9c--