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] remove temporary variables #53810

Merged
merged 4 commits into from
Dec 10, 2024

Conversation

browner12
Copy link
Contributor

removal of some simple temporary variables.

some of these were most likely originally written this way due to binding of $this prior to arrow functions.

the declared variable is only used once. inlining does not decrease readability.

my guess is it was originally written this way *before* we had arrow functions, and could inherit the outer `$this` scope.

also minor formatting update to use our new multiline chaining standard
also put each argument on separate line for multiline for better git diffs
a couple more real simple ones
@browner12
Copy link
Contributor Author

failure seems unrelated to changes. PHP setup was halted.

@taylorotwell taylorotwell merged commit a3b99f1 into laravel:11.x Dec 10, 2024
37 of 38 checks passed
@browner12 browner12 deleted the AB-remove-temporary-variables branch December 10, 2024 15:58
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