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

Replace conditional logic with PHP match expression for control structure #55145

Conversation

mohammadrasoulasghari
Copy link
Contributor

@mohammadrasoulasghari mohammadrasoulasghari commented Mar 23, 2025

this part of the code didn’t use PHP’s match feature, and due to its structure, it improve in PHP control structures.

According to the documentation, this section has been modified to fix this issue and make it more readable:
https://www.php.net/manual/en/control-structures.match.php

Simplifies conditional logic while maintaining identical behavior.
@taylorotwell
Copy link
Member

I think it's ok as is.

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.

4 participants