Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57040 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89797 invoked from network); 22 Dec 2011 23:22:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2011 23:22:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:36953] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/56-12618-79BB3FE4 for ; Thu, 22 Dec 2011 18:22:00 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 3BE04DE142; Thu, 22 Dec 2011 23:21:56 +0000 (GMT) Date: Thu, 22 Dec 2011 23:21:56 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Will Fitch cc: Dmitri Snytkine , 'Nikita Popov' , 'Alain Williams' , PHP Developers Mailing List In-Reply-To: Message-ID: References: <2095305E-D4E3-4D7E-8218-32EE99688E0C@GMAIL.COM> <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> <159A7CA2-8561-40DA-9434-CAAE12304DDB@gmail.com> <005701ccc0b3$58c8dee0$0a5a9ca0$@alliantinternet.com> <20111222145159.GY25857@alliantinternet.com> <006101ccc0ba$46b81160$d4283420$@alliantinternet.com> <006801ccc0bc$04e876b0$0eb96410$@alliantinternet.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Return Type Hinting for Methods RFC From: derick@php.net (Derick Rethans) On Thu, 22 Dec 2011, Will Fitch wrote: > On Dec 22, 2011, at 10:11 AM, Dmitri Snytkine wrote: > > > I think the return type hinting really depends on variable type hinting. > > A simple example whould bea typical getter function > > > > public function \Customer getCustomer(){ > > return $this->customer; > > } > > The actual syntax would be: > > public \Customer getCustomer() Really? I saw this in the RFC when I skimmed over it, but presumed that to be a mistake. I do not see it as a great idea to remove the "function" part as it's *so* PHP right now. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug