Skip to content

[Sync-En] closures: make the variable inheritance example explain itself - #1246

Merged
julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/1236-closure-example
Sep 3, 2026
Merged

[Sync-En] closures: make the variable inheritance example explain itself#1246
julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/1236-closure-example

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Translation of php/doc-en#4826 (commit c19f29d): the comments of the "inheriting variables from the parent scope" example now say what each closure demonstrates, the return type example returns an array, and the output block matches current PHP. EN-Revision updated.

language/functions.xml is still an untranslated copy of the English page, so only the comments of that example are in Spanish.

Fixes: #1236

@julionc
julionc merged commit 924653e into php:master Sep 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] docs: improve closure variable inheritance example (#4826)

2 participants