Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ErrorHandler] Fix FlattenException::setPrevious argument typing #44028

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
Nov 12, 2021

Conversation

welcoMattic
Copy link
Member

@welcoMattic welcoMattic commented Nov 12, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #44024
License MIT
Doc PR

The setter didn't accept null value, while the getter can return null. It can be a fix for the linked issue, but I'm not 100% sure about the cause of the issue (I'll try to make a reproducer soon).

In the meantime, this typing bug seems to fix at least the case explained in the issue.

@nicolas-grekas
Copy link
Member

Can you please target 4.4?

@welcoMattic welcoMattic force-pushed the fix/flatten-exception-typing branch from 21ec2b8 to 64143dd Compare November 12, 2021 14:57
@welcoMattic welcoMattic changed the base branch from 5.4 to 4.4 November 12, 2021 14:57
@chalasr chalasr modified the milestones: 5.4, 4.4 Nov 12, 2021
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

be careful when merging up, signature is not the same on upper branches but null should keep being supported

@fabpot
Copy link
Member

fabpot commented Nov 12, 2021

Thank you @welcoMattic.

@fabpot fabpot merged commit b560ec4 into symfony:4.4 Nov 12, 2021
This was referenced Nov 14, 2021
This was referenced Nov 22, 2021
@welcoMattic welcoMattic deleted the fix/flatten-exception-typing branch July 6, 2022 09:55
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.

[Messenger] Denormalization of array with null value in previous index to FlattenException is failing.
5 participants