-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor: Apply code quality level 31 for rector #9303
refactor: Apply code quality level 31 for rector #9303
Conversation
Ready to merge 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the issue with compact()
that this change brings?
That's easier to verify that the variable exists and used after defined. |
I purposely used compact() to compress the string... |
It seems both approach emits a warning when the variable is undefined. Difference only is that I'm not sure which way we want to go, but personally I use |
Ok, let see what other opinion for it |
Personally, I have nothing against using |
Ok, I will skip it. We can continue increase level with skip this rule. |
Ready to merge 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go next level)
Thanks all for the review, let's merge 👍 |
Description
Applied
ThrowWithPreviousExceptionRector
so when throwing into a catch block, checks that the previous exception is passed to the new throw clauseChecklist: