Skip to content

gen_stub: Implement deep cloning using array_map()#21555

Merged
kocsismate merged 1 commit intophp:masterfrom
TimWolla:gen-stub-clone-forward-compatibility
Mar 30, 2026
Merged

gen_stub: Implement deep cloning using array_map()#21555
kocsismate merged 1 commit intophp:masterfrom
TimWolla:gen-stub-clone-forward-compatibility

Conversation

@TimWolla
Copy link
Copy Markdown
Member

This is for forward compatibility when the deep-cloned arrays will become readonly. Reassigning each item individually is not allowed then.

Extracted from #21554 and dependent on that.

@TimWolla TimWolla marked this pull request as ready for review March 27, 2026 19:06
@TimWolla TimWolla requested a review from kocsismate as a code owner March 27, 2026 19:06
This is for forward compatibility when the deep-cloned arrays will become
`readonly`. Reassigning each item individually is not allowed then.
@TimWolla TimWolla force-pushed the gen-stub-clone-forward-compatibility branch from 02e6f2a to 0db2016 Compare March 29, 2026 13:06
@kocsismate kocsismate merged commit 0b70abc into php:master Mar 30, 2026
19 checks passed
@TimWolla TimWolla deleted the gen-stub-clone-forward-compatibility branch March 30, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants