Skip to content

Conversation

weaverryan
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets None
License MIT
Doc PR not needed

Hi!

Reported by a user on SymfonyCasts :). Apparently without the parentheses, the order of operations is incorrect: https://3v4l.org/UZ7GU

Thanks!

@yceruto
Copy link
Member

yceruto commented Dec 9, 2019

Thank you @weaverryan.

yceruto added a commit that referenced this pull request Dec 9, 2019
…or (weaverryan)

This PR was merged into the 4.4 branch.

Discussion
----------

Fixing bad order of operations with null coalescing operator

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | None
| License       | MIT
| Doc PR        | not needed

Hi!

Reported by a user on SymfonyCasts :). Apparently without the parentheses, the order of operations is incorrect: https://3v4l.org/UZ7GU

Thanks!

Commits
-------

6291264 Fixing bad order of operations with null coalescing operator
@yceruto yceruto merged commit 6291264 into symfony:4.4 Dec 9, 2019
@weaverryan weaverryan deleted the fix-bad-order-operations branch December 9, 2019 22:49
This was referenced Dec 19, 2019
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