Add test case for converting null integer parameters to integers#7612
Add test case for converting null integer parameters to integers#7612codebymikey wants to merge 1 commit intorectorphp:mainfrom
Conversation
There was a problem hiding this comment.
@codebymikey could you provide a patch as well, you should can change this
with isNames() and array() of function names:
- if (! $this->isName($funcCall, 'preg_split')) {
+ if (! $this->isNames($funcCall, [
'preg_split',
'preg_grep',
'preg_match',
// and so on...
])) {|
Wouldn't it be more flexible to create a new That way the same rule may be easily used for custom projects. Also, is it fine to remove |
Sounds best way. We'll still need to have it configured in the PHP set.
Keep the class, but remove the |
|
This should similar implementation with |
|
@codebymikey Just checking, any progress on this? We usually close long-opened failing PRs with issues to avoid stalling. |
|
None I'm afraid as I haven't had the time to look into it, I just created the failing text fixture file as requested in the original issue, and added my thoughts regarding how a fix should be tackled. |
|
I see. @samsonasik provided clear context to fix it. Feel free reopen with fixing PR 👌 |
Fixes rectorphp/rector#9483