Skip to content

Conversation

@pereorga
Copy link
Contributor

While working with static variables inside anonymous functions, I unexpectedly found that the static variable would not persist across calls because the anonymous function was recreated each time. This behavior was counterintuitive for me, so I updated the documentation to describe it.

@Girgias Girgias merged commit 7d80472 into php:master Jan 27, 2025
2 checks passed
@Girgias
Copy link
Member

Girgias commented Jan 27, 2025

Thank you!

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.

2 participants