Skip to content

[12.x] Refactor switch to match#57236

Merged
taylorotwell merged 2 commits into
laravel:12.xfrom
amirhshokri:12.x-convert-switch-to-match
Oct 2, 2025
Merged

[12.x] Refactor switch to match#57236
taylorotwell merged 2 commits into
laravel:12.xfrom
amirhshokri:12.x-convert-switch-to-match

Conversation

@amirhshokri

Copy link
Copy Markdown
Contributor

This PR refactors the src/Illuminate/Console/Parser::parseArgument method to use match expression instead of the older switch construct.

Benefits:

  • Cleaner and more modern syntax
  • Expression-based

@taylorotwell taylorotwell merged commit f392e00 into laravel:12.x Oct 2, 2025
63 checks passed
@amirhshokri amirhshokri deleted the 12.x-convert-switch-to-match branch October 2, 2025 09:30
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