Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Feb 1, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Ayesh added 2 commits February 1, 2026 10:35
…RRAY_FILTER_USE_VALUE`

In GH-15647, the `array_filter` function was changed to throw a
`ValueError` exception when the `$mode` parameter receives an
invalid.

Additionally, it declares a new `ARRAY_FILTER_USE_VALUE`, assigned
(`int 1`) to it.

This changes the default value of the `array_filter` function's
`$mode` parameter to use the new constant, changing it from
`int $mode = 0` to `int $mode = ARRAY_FILTER_USE_KEY)`.

Closes GH-21100.
@pull pull bot locked and limited conversation to collaborators Feb 1, 2026
@pull pull bot added the ⤵️ pull label Feb 1, 2026
This code path is reachable for all assignments expressions, not just true
variable expressions.

Really surprising we have no tests that caught this.
@pull pull bot merged commit a01a8e7 into turkdevops:master Feb 1, 2026
2 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants