Re: Introducing "Array Of" RFC
On 27 February 2014 22:11, Philip Sturgeon <[email protected]> wrote:
> So, should we allow nulls in an arrayof-style type hint?
>
>
null
has its own type, which is mismatching the type required by the
array-of syntax when requesting, for example, Foo[]
.
If null
was allowed in the array, as a user, I'd still be forced to
array_filter()
on every call, so it would defeat the new feature
completely.
Cheers,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
Thread (73 messages)