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

Allow WrappedListener to describe uncallable listeners#31615

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

Conversation

@derrabus
Copy link
Member

QA
Branch?4.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#31493
LicenseMIT
Doc PRN/A

This is a follow-up to#31493. The previous PR did not fix the problem completely. We also need to make sure that a listener that is not callable is not passed toClosure::fromCallable().

Note: It would probably be a good idea to give the developer a hint about uncallable listeners. Currently, such a listener causes an exception at the worst possible point of time: when collecting the profile information. This breaks the toolbar without any helpful feedback, as I've describedhere.

This PR allows theWrappedListener class to describe a listener for the profiler even if the listener is not callable, which was the behavior in Symfony 4.2.

@fabpot
Copy link
Member

Thank you@derrabus.

@fabpotfabpot merged commitbc3f598 intosymfony:4.3May 25, 2019
fabpot added a commit that referenced this pull requestMay 25, 2019
…rrabus)This PR was merged into the 4.3 branch.Discussion----------Allow WrappedListener to describe uncallable listeners| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#31493| License       | MIT| Doc PR        | N/AThis is a follow-up to#31493. The previous PR did not fix the problem completely. We also need to make sure that a listener that is not callable is not passed to `Closure::fromCallable()`.Note: It would probably be a good idea to give the developer a hint about uncallable listeners. Currently, such a listener causes an exception at the worst possible point of time: when collecting the profile information. This breaks the toolbar without any helpful feedback, as I've described [here](#31493 (comment)).This PR allows the `WrappedListener` class to describe a listener for the profiler even if the listener is not callable, which was the behavior in Symfony 4.2.Commits-------bc3f598 Allow WrappedListener to describe uncallable listeners.
@derrabusderrabus deleted the bugfix/describe-uncallable-listener branchMay 25, 2019 17:41
@fabpotfabpot mentioned this pull requestMay 28, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@derrabus@fabpot@nicolas-grekas@Simperfit@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp