Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38374 invoked from network); 30 May 2014 00:44:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2014 00:44:13 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.182 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.182 mail-pd0-f182.google.com Received: from [209.85.192.182] ([209.85.192.182:62207] helo=mail-pd0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/35-07154-C54D7835 for ; Thu, 29 May 2014 20:44:13 -0400 Received: by mail-pd0-f182.google.com with SMTP id r10so328154pdi.27 for ; Thu, 29 May 2014 17:44:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=OBGYXO2zP0nZ7NXnE3Ee6+OAW+on9rIxUaf65FO2mqE=; b=h30sYAOBQwxuH/7DxO0cEqSYUg8CbjAb1JZyFzZEtporn5uz4W1VGbNxHHPpQojsd9 bdYF5vTL4zavwscx3DHcAAQR+blP+CTF7B7ti5p754qzcB76S81cfUXigTkWFXZ/7zKk nvrOsYU0P5zS7rxikkFY3a0VKZVhfr/CGIL8qDNrJ5oC7xlA3yM21oBzFR80EUWHqZt6 veikE7MivXoM89FE+5YknDP9KKJoYihwzYnSB1nUUDiJ36R8KILf/jRoy76jqV32eILh YNs3IWQHpNR9xvHw+Rfi/etxoYcXODf0plr9j8fH41HHDeuIDMmNGgtFf/Gz1otD2i1G /fGw== X-Gm-Message-State: ALoCoQk/kcOztCeN4/LrFTnMFws70TnzdBiwngVlq5c9YoOY8jjaF3GYRHMRDSqJFAETMHZXgDSP MIME-Version: 1.0 X-Received: by 10.66.139.201 with SMTP id ra9mr13855504pab.84.1401410650065; Thu, 29 May 2014 17:44:10 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.100.67 with HTTP; Thu, 29 May 2014 17:44:09 -0700 (PDT) X-Originating-IP: [2620:0:1cfe:18:22c9:d0ff:fe87:295b] In-Reply-To: References: Date: Thu, 29 May 2014 17:44:09 -0700 X-Google-Sender-Auth: 8Rq7oxrHvx6QLUz6nyEljbc7kJk Message-ID: To: Levi Morrison Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] ReflectionParameter::hasTypehint() / getTypehintText() From: pollita@php.net (Sara Golemon) On Thu, May 29, 2014 at 3:22 PM, Levi Morrison wrote: > On Thu, May 29, 2014 at 4:01 PM, Sara Golemon wrote: >> $rf = new ReflectionFunction('foo'); >> list($rp) = $rf->getParameters(); >> $hint = $rp->getType(); // returns ReflectionTypeHint >> if ($hint->isArray()) { ... } >> >> I thought about that (and would like to see it), which is why I >> specifically went for the name getTypehintText(), which leaves the >> "get me an object version" (i.e. getTypehint()) left available. See >> also: https://wiki.php.net/rfc/reflectionparameter.typehint#on_the_naming >> If you think it's a bit too busy to have getTypehint(): object, and >> getTypehintText(): string, I can hold off on this RFC for awhile. >> There's certainly no rush. > > Yeah, I mean something like that. Maybe we could collaborate in IRC > somewhere to work out details? We can move much faster that way. I'm > regularly in #hhvm on freenode and #php.doc and #php.pecl on efnet as > LeviM or LeviM_t. > Per our conversation in IRC, I've updated the RFC and implementation