Re: [RFC - Discussion] Parameter Type Casting Hints

From: Date: Sun, 04 Mar 2012 14:03:37 +0000
Subject: Re: [RFC - Discussion] Parameter Type Casting Hints
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
> 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...


Thread (10 messages)

« previous php.internals (#58575) next »