Skip to content

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