Re: type hinting
| From: | Sam Barrow | Date: | Fri, 04 Jan 2008 19:28:23 +0000 |
| Subject: | Re: type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34477@lists.php.net to get a copy of this message | ||
On Fri, 2008-01-04 at 11:27 -0800, Stanislav Malyshev wrote:
> > About the same, but the @param comment doesn't stop someone from putting
> > an array into $client.
>
> No, it doesn't. The function should handle that.
Ok, in a bunch of extra unwanted code and a call to trigger_error(). Or
we could take the easy way and put "string" before the argument.