Skip to content

[12.x] Improving readability#56847

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
AhmedAlaa4611:improving-readability
Aug 31, 2025
Merged

[12.x] Improving readability#56847
taylorotwell merged 1 commit into
laravel:12.xfrom
AhmedAlaa4611:improving-readability

Conversation

@AhmedAlaa4611

Copy link
Copy Markdown
Contributor

Description

This PR replaces the inline ternary with a clearer if statement for better readability. The previous form was confusing and could be misread as returning an exception rather than throwing it.

@taylorotwell taylorotwell merged commit c1b1628 into laravel:12.x Aug 31, 2025
65 checks passed
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