Skip to content

[Form] Document null support in NumberToLocalizedStringTransformer #41453

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
Jun 3, 2021

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented May 30, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformer explicitly checks for and returns nulls but these aren't documented in the class' doc blocks, which causes static analysis tools to report a false positive when checking for these null values elsewhere. This adds the missing null types to the doc blocks.

@mbabker mbabker requested review from xabbuh and yceruto as code owners May 30, 2021 16:09
@derrabus derrabus added this to the 4.4 milestone May 30, 2021
@derrabus derrabus added the Form label May 30, 2021
@carsonbot carsonbot changed the title Document null support in NumberToLocalizedStringTransformer [Form] Document null support in NumberToLocalizedStringTransformer May 30, 2021
@nicolas-grekas
Copy link
Member

Thank you @mbabker.

@nicolas-grekas nicolas-grekas merged commit f143c8f into symfony:4.4 Jun 3, 2021
@mbabker mbabker deleted the number-localizer-docblock branch June 16, 2021 15:38
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.

4 participants