Re: Object[] type hint
| From: | Sebastian Bergmann | Date: | Mon, 05 Feb 2007 18:36:41 +0000 |
| Subject: | Re: Object[] type hint | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27820@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> And how this would be verified - each time by passing whole array and
> checking each element is an object? I don't think it's a good idea.
The check would only be performed in the case where one uses the new
type hint. And if someone needs this, he would manually do the same in
userspace anyways (see the example in my original mail).
--
Sebastian Bergmann http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69