Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57054 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15152 invoked from network); 23 Dec 2011 01:57:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Dec 2011 01:57:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=will.fitch@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=will.fitch@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: will.fitch@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:48126] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/F3-28504-8FFD3FE4 for ; Thu, 22 Dec 2011 20:57:12 -0500 Received: by qabj40 with SMTP id j40so5057881qab.8 for ; Thu, 22 Dec 2011 17:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=yAhRk2M0mn5SJ0rp2KV9mIt0m4AFFkg7CYc/tldKxpQ=; b=SrhfSDWnTMlzvsMgAPeRBIevs1p7IOLNAblu6cOh1kqj76xNAysAxmr2P9dRPtTFfd DBgsKDf/2oohrt9kjDlrKcEKTxRWe5W9PzfOTLACuJOjcEMq3xou/Ru7AMByvxuWhaip nlec4u6Psikp4h8VkZQIGJu7eHFy9DXtKUn5E= Received: by 10.224.96.84 with SMTP id g20mr16435017qan.17.1324605428569; Thu, 22 Dec 2011 17:57:08 -0800 (PST) Received: from [10.0.0.10] (c-71-225-170-108.hsd1.pa.comcast.net. [71.225.170.108]) by mx.google.com with ESMTPS id eb5sm20912094qab.10.2011.12.22.17.57.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Dec 2011 17:57:07 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <4EF3CEFA.4000301@gmail.com> Date: Thu, 22 Dec 2011 20:57:05 -0500 Cc: PHP Developers Mailing List Content-Transfer-Encoding: quoted-printable Message-ID: <82BE79D1-2965-44B6-BCB7-9A48990F9C31@gmail.com> References: <2095305E-D4E3-4D7E-8218-32EE99688E0C@GMAIL.COM> <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> <159A7CA2-8561-40DA-9434-CAAE12304DDB@gmail.com> <4EF3B56A.4040809@gmail.com> <-2451498990672032588@unknownmsgid> <4EF3C99F.4010300@gmail.com> <4EF3CEFA.4000301@gmail.com> To: =?iso-8859-1?Q?=C1ngel_Gonz=E1lez?= X-Mailer: Apple Mail (2.1251.1) Subject: Re: [PHP-DEV] Return Type Hinting for Methods RFC From: will.fitch@gmail.com (Will Fitch) I will update to take functions into consideration. Will let you know = when the RFC/patch reflect it. On Dec 22, 2011, at 7:44 PM, =C1ngel Gonz=E1lez wrote: >> (I'm unsure about the T_DOUBLE_ARROW, although for parsing, I feel = there >> should be some token there >> before the class name, though I'm unconvinced on which) >=20 > What about this? >=20 > function foo (Class1 $a, Class2 $b) return Class3 { > /* Do something */ > return new Class3($a, $b); > } >=20 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20