Re: Introducing "Array Of" RFC
| From: | Larry Garfield | Date: | Thu, 27 Feb 2014 22:28:19 +0000 |
| Subject: | Re: Introducing "Array Of" RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72848@lists.php.net to get a copy of this message | ||
On 2/27/14 3:34 PM, Marco Pivetta wrote:
On 27 February 2014 22:11, Philip Sturgeon <pjsturgeon@gmail.com> wrote:^^ My general stance. (Unless an "allow both" syntax is possible; if not, the above.) --Larry GarfieldSo, should we allow nulls in an arrayof-style type hint?nullhas its own type, which is mismatching the type required by the array-of syntax when requesting, for example,Foo[]. Ifnullwas allowed in the array, as a user, I'd still be forced toarray_filter()on every call, so it would defeat the new feature completely.