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 [email protected] to get a copy of this message
Good.

On Sun, Mar 4, 2012 at 2:03 PM, Anthony Ferrara <[email protected]> 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...


Thread (10 messages)

« previous php.internals (#58576) next »