Skip to content

[pull] master from php:master#522

Merged
pull[bot] merged 3 commits into
ConnectionMaster:masterfrom
php:master
Feb 1, 2026
Merged

[pull] master from php:master#522
pull[bot] merged 3 commits into
ConnectionMaster:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Feb 1, 2026

Copy link
Copy Markdown

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 and others added 3 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.
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 locked and limited conversation to collaborators Feb 1, 2026
@pull pull Bot added the ⤵️ pull label Feb 1, 2026
@pull pull Bot merged commit a01a8e7 into ConnectionMaster:master Feb 1, 2026
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