Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49821 invoked from network); 30 May 2014 05:06:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2014 05:06:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.213.182 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.213.182 mail-ig0-f182.google.com Received: from [209.85.213.182] ([209.85.213.182:35271] helo=mail-ig0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/76-07154-3D118835 for ; Fri, 30 May 2014 01:06:27 -0400 Received: by mail-ig0-f182.google.com with SMTP id uy17so403313igb.9 for ; Thu, 29 May 2014 22:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=tC3Bahbe6Y9nEEDu/4binwoaX+oHbIHQHCK6aF0z5ss=; b=vs47h9FpGhMjLbiwmn4OfuF8TkEVHZtYcNYAZ1reTk+cxuS1scA40aLplUwNTHyrfd LVWTLZiad0iRv6zQNfqk4FmNQUWVztMXYjIU7jpfvf6ahKcxVGBQhF5Ey0SCWIfJyhC5 pOnqnNloCB7TrOVkVvk5QYnMwDpYYPSApK548= 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:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=tC3Bahbe6Y9nEEDu/4binwoaX+oHbIHQHCK6aF0z5ss=; b=XXdLodAiWmbGbOCM90rZBKaQAkyBN3oNdrgfOMmmMs49tntiH3VJhrQmYNKdTzh18B 91ixmUZ00UPJqXr9sY0I9L4mWZ2ckJosntCE7YpkyQeVoKiwgQQJl0z1+Y1/PD4jhyr0 yBRKBsVHQlxHqEwCw51qsj33MLcT8KGrSosRtR9OJUOI+3V1niQnaQUONGMo1/UdIaKq V9y8VmFaU8M5Z6broz5kWluTLq9KfMVb2JqAtbzB2lGd6v5KrqpVFjc35IyzQbiBz+E4 aK18qHMhRCv8/RRRDdDiKFgU/t3S7fQWWTQxuTB/6Z2vxPVYV5d2RWrUTRXxyp7PFTHk ScNw== X-Gm-Message-State: ALoCoQk8gBPz9dxZLayK2n0b+gjlQAYsP2/e8/NekXyaOSM9a7y99mvObq9bSFQTzXlo4DCk3vbx X-Received: by 10.50.114.34 with SMTP id jd2mr2112681igb.35.1401426384202; Thu, 29 May 2014 22:06:24 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.42.254.138 with HTTP; Thu, 29 May 2014 22:06:03 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 May 2014 22:06:03 -0700 X-Google-Sender-Auth: dulyiaplMGpRh3OTMRRgIGb1WZc Message-ID: To: Levi Morrison Cc: Derick Rethans , Sara Golemon , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] ReflectionParameter::hasTypehint() / getTypehintText() From: aharvey@php.net (Adam Harvey) On 29 May 2014 18:08, Levi Morrison wrote: > On Thu, May 29, 2014 at 4:54 PM, Derick Rethans wrote: >> I don't think it should return an empty string when hasTypehint has >> failed (the 4th "test") in your test case (for $d). IMO, it should >> return NULL. > > If it doesn't have type information I think an empty string should be > returned. Since you can't have an empty type hint there really isn't a > conflict there. This means the function can always return a string. I'd prefer NULL to indicate the complete absence of a type hint too =E2=80= =94 it ends up as an empty string if it's used in that context regardless, but the changed type is useful. I don't feel strongly enough about this that it would affect my vote, though. > That's my $0.02. Adam, providing 2.17 Canadian cents.