Re: Introducing "Array Of" RFC
| From: | Nikita Nefedov | Date: | Wed, 15 Jan 2014 21:56:14 +0000 |
| Subject: | Re: Introducing "Array Of" RFC | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71159@lists.php.net to get a copy of this message | ||
On Thu, 16 Jan 2014 01:24:46 +0400, Lars Strojny <lars@strojny.net> wrote:
Hi Philip, On 15 Jan 2014, at 19:17, Philip Sturgeon <pjsturgeon@gmail.com> wrote: [...]So will calling foo(""); where foo's definition is foo(Asd $asd, Qwe $qwe); I, for one, don't see a problem here.It is aimed at PHP 5.6, and so far the release managers seem to be ok with the idea of this potentially being merged after the alpha release, so this should not be considered an issue. Everything is open for discussion, especially the current error messages. They are not perfect, so let us know if you have better ideas.Very nice proposal. One thing I noticed by reading the code (and the tests9 is that it bails out at the first offender. Given I hint for Foo[], and pass [new Foo(), new Bar(), new Baz()] it will only inform me about Bar violating Foo.