Replies: 1 comment 1 reply
-
This would actually cause unintended side effects, and be a breaking change to the current API. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
`Hello,
I don't know really how to submit new ideas so I'll be doing it here.
I know Laravel has started to replace a lot of code to use the new PHP8 keyword
match
.We've started doing the same in some of our projects and we really like this piece of code:
So I would like to submit the following idea, to replace the
when
method of the traitConditionallyLoadsAttributes
.Original:
New:
To me, while it takes the same amount of line, I find it easier to read.
This may be a bad example since it has 4-5 lines but in a class with a lot of lines, this is easier to spot.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions