Re: [RFC] [Vote] array_first() and array_last()
| From: | Levi Morrison | Date: | Wed, 23 Apr 2025 20:44:03 +0000 |
| Subject: | Re: [RFC] [Vote] array_first() and array_last() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127177@lists.php.net to get a copy of this message | ||
On Tue, Apr 22, 2025 at 9:18 PM Niels Dossche <dossche.niels@gmail.com> wrote:
>
> Hi internals
>
> I'm opening the vote for
> https://wiki.php.net/rfc/array_first_last
> Vote runs until 2025-05-06 23:59:59 CEST.
>
> Kind regards
> Niels
I've voted yes. I still don't like functions which conflate null as an
error and null as a legitimate value. I think that the user can
reasonably avoid this edge in many cases, and we don't really have a
better option (ha) than throwing an exception, which doesn't seem
right to me in this case.
So it's a reluctant yes.