Re: Syntactic improvement to array

From: Date: Sun, 04 Feb 2007 15:24:20 +0000
Subject: Re: Syntactic improvement to array
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-27743@lists.php.net to get a copy of this message
On 2/4/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
Hi Andi function typeHinted([] $array = []) { // type hint array, default to empty one
That's a wrong example. Type hinting should still rely on the literal name: function typeHinted(Array $myarray=[]) --Pierre

« previous php.internals (#27743) next »