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

Deprecate returning non-string values from a user output handler #18932

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
DanielEScherzer merged 15 commits into php:master from DanielEScherzer:output-handler-non-string
Jul 7, 2025

Conversation

Copy link
Member

@DanielEScherzer DanielEScherzer commented Jun 24, 2025

Girgias reacted with heart emoji
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Thank you for tackling this! I added a few comments and I think the reason you don't get the "correct" name for anonymous functions should be fixed with #19011

Copy link
Member Author

Thank you for tackling this! I added a few comments and I think the reason you don't get the "correct" name for anonymous functions should be fixed with #19011

Rebased after that patch was merged and indeed the anonymous functions no longer just say "Closure::__invoke", 87756d7

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Few nits, but looks mostly good :)

@DanielEScherzer DanielEScherzer merged commit d8577d9 into php:master Jul 7, 2025
9 checks passed
@DanielEScherzer DanielEScherzer deleted the output-handler-non-string branch July 7, 2025 21:32
Copy link
Member

bukka commented Aug 10, 2025

There was reason why we didn't merge this: See https://externals.io/message/124506#124666 . @DanielEScherzer have you considered all those edge cases?

Copy link
Member

bukka commented Aug 10, 2025

I think this should get another RFC that will in more detail consider output handler behavior.

Copy link
Member

bukka commented Aug 10, 2025

Or lets leave it as you put already some effort into this and we will see how it goes. It was strange edge case anyway and might be a bit unusual for people to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@TimWolla TimWolla TimWolla left review comments

@Girgias Girgias Girgias approved these changes

@bukka bukka Awaiting requested review from bukka bukka is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /