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

[11.x] consistent multiline constructors #53566

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

browner12
Copy link
Contributor

we have a little bit of a mix-and-match for our multiline constructors through the framework. this PR makes them consistent.

  • first parameter on newline
  • trailing comma after last parameter
  • closing parentheses on newline with opening bracket

this format is incredibly readable and makes for easy to grok diffs.

this format will also be very conducive as the framework continues to become more typed, and for more and more use of promoted properties.

- trailing comma
- closing parenthese on new line
- first parameter on new line
- trailing commas
- parenthese on new line
@taylorotwell taylorotwell merged commit 2042147 into laravel:11.x Nov 18, 2024
33 checks passed
@browner12 browner12 deleted the AB-multiline-constructors branch November 18, 2024 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants