Re: Introducing "Array Of" RFC

From: Date: Thu, 27 Feb 2014 21:34:20 +0000
Subject: Re: Introducing "Array Of" RFC
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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)

« previous php.internals (#72845) next »