Skip to content
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

CS: enable ordered_types.null_adjustment=always_last #53544

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

keradus
Copy link
Member

@keradus keradus commented Jan 15, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
Issues Fix CS
License MIT

This PR is to apply rule to put null as last type variant for type declaration.
Sf ruleset is already having enabled very same rule for types in phpdoc.

Diff is very minimal, most of codebase already follows it.

If merged, we can adjust official ruleset (PR already prepared by community: PHP-CS-Fixer/PHP-CS-Fixer#7356 )

@carsonbot carsonbot added this to the 7.1 milestone Jan 15, 2024
@keradus keradus changed the title Ordered types null CS: enable ordered_types.null_adjustment=always_last Jan 15, 2024
@Nyholm
Copy link
Member

Nyholm commented Jan 16, 2024

Thank you.

Im 👍

@xabbuh
Copy link
Member

xabbuh commented Jan 16, 2024

Thank you @keradus.

@xabbuh xabbuh merged commit 744d0ac into symfony:7.1 Jan 16, 2024
6 of 9 checks passed
@keradus keradus deleted the ordered_types_null branch January 16, 2024 09:04
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.

None yet

5 participants