refactor: Apply code quality level 31 for rector#9303
refactor: Apply code quality level 31 for rector#9303samsonasik merged 3 commits intocodeigniter4:developfrom
Conversation
|
Ready to merge 👍 |
paulbalandan
left a comment
There was a problem hiding this comment.
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 👍 |
|
Thanks all for the review, let's merge 👍 |
Description
Applied
ThrowWithPreviousExceptionRectorso when throwing into a catch block, checks that the previous exception is passed to the new throw clauseChecklist: