Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarExporter] Add support for exporting named closures#61657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.4fromnicolas-grekas:ve-named-closures
Sep 6, 2025

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
Issues-
LicenseMIT

With first-class callables now allowed in attributes since PHP 8.5, it might become more common to find named closures in exported objects.

Copy link
Member

@GromNaNGromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, but I have a question about naming.


Is it something we could leverage for dumping object-bound closures in the DIC? Like#61656. But we don't serialize objects in DI arguments anyway, so it's probably a bad idea.

@nicolas-grekas
Copy link
MemberAuthor

I wouldn't add that to general DI values yet. The closure() function will allow it anyway, properly.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commita9dcea4 intosymfony:7.4Sep 6, 2025
7 of 12 checks passed
@nicolas-grekasnicolas-grekas deleted the ve-named-closures branchSeptember 9, 2025 16:02
This was referencedOct 27, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@GromNaNGromNaNGromNaN approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@GromNaN@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp