Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20907 invoked from network); 29 May 2014 20:55:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 May 2014 20:55:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.51 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.51 mail-oa0-f51.google.com Received: from [209.85.219.51] ([209.85.219.51:56482] helo=mail-oa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/C2-07154-6CE97835 for ; Thu, 29 May 2014 16:55:35 -0400 Received: by mail-oa0-f51.google.com with SMTP id n16so967186oag.10 for ; Thu, 29 May 2014 13:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=feFNN7JVVysQFvdbeqERewkzQs9aj/WhjOV20N60Rek=; b=YnYghRfxotdrO0VBcU21/3TEPWQ2ayrJtRFp2cS4ZlygTuNZEhbJqoVvr10iP7riNc 6J0eL6d0ZiDMEjG9CCYXSVenVW1mDyJ2VvvXROS9p872VD0qF90WcLKeVeHEggq9RWUb vrYryrNoVbV7P3mc6GQU7EebUApp2DlRiDSootsneZu64WxiuGf6sFLXxgKU6T2BszGx Nx9OdwB0pEmn3CEtEaIi57376v340hzIgyW71cMTfn/1bk1WP7JcLS8X0mYmd1URL4vw BFSDDMp2JU9lLQ7k31o6kJbGU9SetwZwLR6m7bi06dxwtOtzBG/FlkT7r+Wr+6QzycAj WfEg== MIME-Version: 1.0 X-Received: by 10.182.97.97 with SMTP id dz1mr11770500obb.13.1401396932288; Thu, 29 May 2014 13:55:32 -0700 (PDT) Received: by 10.76.77.100 with HTTP; Thu, 29 May 2014 13:55:32 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 May 2014 14:55:32 -0600 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] ReflectionParameter::hasTypehint() / getTypehintText() From: morrison.levi@gmail.com (Levi Morrison) On Thu, May 29, 2014 at 1:59 PM, Sara Golemon wrote: > Pretty straight-forward. Makes it easier to recreate a function > signature from PHP (Mocking) > https://wiki.php.net/rfc/reflectionparameter.typehint Sara, I'm hoping to improve the way types are handled in reflection but I've been waiting until the return types and nullable types RFCs have been voted on as that will most likely impact my decisions. I'd like to introduce getType and hasType functions that holds various bits of information such as isArray(), isCallable() and could also contain the text representation of the type. What are your thoughts on that?