Re: [RFC - Discussion] Parameter Type Casting Hints
| From: | Paul Dragoonis | Date: | Sun, 04 Mar 2012 13:57:23 +0000 |
| Subject: | Re: [RFC - Discussion] Parameter Type Casting Hints | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58573@lists.php.net 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)
- Paul.
On Sun, Mar 4, 2012 at 1:28 AM, Anthony Ferrara <ircmaxell@gmail.com> wrote:
> Hey all,
>
> I've drafted an RFC for the Parameter type casting hint proposal that
> I posted to before. Attached to the RFC is a patch that's proposed
> for inclusion in core for functionality (it doesn't include news
> entries, or documentation, or any of the other steps that would be
> needed prior to commit).
>
> https://wiki.php.net/rfc/parameter_type_casting_hints
>
> Please provide feedback here on the implementation and RFC topics.
>
> Thanks,
>
> Anthony
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>