Re: [RFC - Discussion] Parameter Type Casting Hints

From: Date: Sun, 04 Mar 2012 14:06:46 +0000
Subject: Re: [RFC - Discussion] Parameter Type Casting Hints
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-58576@lists.php.net to get a copy of this message
Good. On Sun, Mar 4, 2012 at 2:03 PM, Anthony Ferrara <ircmaxell@gmail.com> wrote: >> Can you make sure that only scalar or array casts can be done? >> >> I wouldn't want people to put class typehints in there such as >> function foo( (SomeClass) $foo) > > That's how it is implemented now.  That'll generate a parse error...

« previous php.internals (#58576) next »