Hi

On 4/19/24 22:08, Larry Garfield wrote:
There's another issue, though: Will the callback always be given both $value and $key?

The current implementation always passes both, which, as I just learned, is inconsistent with `array_filter` which has the `$mode` parameter to control what to pass to the callback.

Not that I claim that the `$mode` parameter is a good idea from the typing perspective for static analysis tools, it probably isn't.

Best regards
Tim Düsterhus

Reply via email to