Skip to content

[9.x] Refactor getTrustedHeaderNames with match function #40019

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
Dec 13, 2021

Conversation

ppodds
Copy link
Contributor

@ppodds ppodds commented Dec 13, 2021

Replace the whole switch statement with the match function, and delete return in the last line which is never be executed.

@ppodds ppodds marked this pull request as ready for review December 13, 2021 16:53
@taylorotwell taylorotwell merged commit f00a541 into laravel:master Dec 13, 2021
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