8000 [Debug][ErrorHandler] fix operator precedence by guilliamxavier · Pull Request #47100 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Debug][ErrorHandler] fix operator precedence #47100

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
merged 1 commit into from
Jul 28, 2022
Merged

[Debug][ErrorHandler] fix operator precedence #47100

merged 1 commit into from
Jul 28, 2022

Conversation

guilliamxavier
Copy link
Contributor
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #10921 (comment)
License MIT

But I'm struggling to come up with a failing test scenario :/ if the bug is only causing evaluating the condition as truthy instead of false when $prev is already equal to $this->thrownErrors | $this->loggedErrors, I guess it will just re-register the same, without real visible effect?

@guilliamxavier guilliamxavier requested a review from yceruto as a code owner July 28, 2022 16:18
@carsonbot carsonbot added this to the 4.4 milestone Jul 28, 2022
@carsonbot carsonbot changed the title [ErrorHandler] [Debug] fix operator precedence [Debug][ErrorHandler] fix operator precedence Jul 28, 2022
Copy link
Member
@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

I guess it will just re-register the same, without real visible effect?

yep, this cannot be tested :)

@nicolas-grekas
Copy link
Member

Good catch, thanks @guilliamxavier.

@nicolas-grekas nicolas-grekas merged commit 9fb7f20 into symfony:4.4 Jul 28, 2022
@guilliamxavier guilliamxavier deleted the patch-1 branch July 28, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
< 2A60 /div>
0